diff --git a/scripts/salt-minion b/scripts/salt-minion index bfb4c1bdcf..a56f0de371 100644 --- a/scripts/salt-minion +++ b/scripts/salt-minion @@ -1,15 +1,20 @@ -#!/usr/bin/env python2 +#!/usr/bin/python2 ''' This script is used to kick off a ''' import salt +import os def main(): ''' The main function ''' - minion = salt.Minion() - minion.start() + pid = os.getpid() + try: + minion = salt.Minion() + minion.start() + except KeyboardInterrupt: + os.kill(pid, 15) if __name__ == '__main__': main()