salt/scripts/salt-syndic
2011-07-30 16:08:55 -06:00

21 lines
332 B
Python

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