Fixes #1888 Add daemonize_if to service.restart

This adds daemonize_if to the debian service.restart.

I checked all the service modules and they all have this now.
This commit is contained in:
David Boucha 2012-11-09 10:22:02 -07:00
parent 4dcf0e9308
commit 3850f9e0fd

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)