mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Allow relative paths for --config_dir with daemonized minions
This commit is contained in:
parent
3b030bbf97
commit
97975f4028
@ -115,15 +115,6 @@ def salt_minion():
|
||||
minion.start()
|
||||
return
|
||||
|
||||
if '-d' in sys.argv or '--daemon' in sys.argv:
|
||||
# disable daemonize on sub processes
|
||||
if '-d' in sys.argv:
|
||||
sys.argv.remove('-d')
|
||||
if '--daemon' in sys.argv:
|
||||
sys.argv.remove('--daemon')
|
||||
# daemonize current process
|
||||
salt.utils.daemonize()
|
||||
|
||||
# keep one minion subprocess running
|
||||
while True:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user