mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
38e5d2b2cb
Signed-off-by: Markus Gattol <markus.gattol@sunoano.org>
23 lines
334 B
Python
23 lines
334 B
Python
#!/usr/bin/python2
|
|
'''
|
|
This script is used to kick off a salt minion daemon
|
|
'''
|
|
|
|
import os
|
|
import salt
|
|
|
|
|
|
def main():
|
|
'''
|
|
The main function
|
|
'''
|
|
pid = os.getpid()
|
|
try:
|
|
minion = salt.Minion()
|
|
minion.start()
|
|
except KeyboardInterrupt:
|
|
os.kill(pid, 15)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|