salt/scripts/salt-syndic

23 lines
334 B
Plaintext
Raw Normal View History

2011-07-30 22:08:55 +00:00
#!/usr/bin/python2
'''
This script is used to kick off a salt syndic daemon
'''
2011-07-30 22:08:55 +00:00
import os
import salt
2011-07-30 22:08:55 +00:00
def main():
'''
The main function
'''
pid = os.getpid()
try:
syndic = salt.Syndic()
syndic.start()
except KeyboardInterrupt:
os.kill(pid, 15)
if __name__ == '__main__':
main()