mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #2498 from UtahDave/daemonize_if
Fixes #1888 Add daemonize_if to service.restart
This commit is contained in:
commit
6c20c84aab
@ -97,6 +97,8 @@ def restart(name):
|
||||
|
||||
salt '*' service.restart <service name>
|
||||
'''
|
||||
if name == 'salt-minion':
|
||||
salt.utils.daemonize_if(__opts__)
|
||||
cmd = 'service {0} restart'.format(name)
|
||||
return not __salt__['cmd.retcode'](cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user