mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
23 lines
334 B
Python
Executable File
23 lines
334 B
Python
Executable File
#!/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()
|