Merge pull request #2498 from UtahDave/daemonize_if

Fixes #1888 Add daemonize_if to service.restart
This commit is contained in:
Thomas S Hatch 2012-11-09 09:31:55 -08:00
commit 6c20c84aab

View File

@ -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)