Salt minion dies with a ctrl-c now

This commit is contained in:
Thomas S Hatch 2011-07-09 15:37:35 -06:00
parent 4941952b97
commit f069cc5fd1

View File

@ -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()