mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
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:
parent
4dcf0e9308
commit
3850f9e0fd
@ -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