salt/scripts/salt-syndic
Markus Gattol 38e5d2b2cb file permissions: from 775 to 755
Signed-off-by: Markus Gattol <markus.gattol@sunoano.org>
2011-11-14 15:49:06 +00:00

23 lines
334 B
Python

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