mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Call update-rc.d with "remove" to disable a service. Also required by #1103.
This commit is contained in:
parent
90b87c0806
commit
d0030677e6
@ -106,5 +106,5 @@ def disable(name):
|
|||||||
salt '*' service.disable <service name>
|
salt '*' service.disable <service name>
|
||||||
'''
|
'''
|
||||||
executable = _get_service_exec()
|
executable = _get_service_exec()
|
||||||
cmd = '{0} -f {1} defaults'.format(executable, name)
|
cmd = '{0} -f {1} remove'.format(executable, name)
|
||||||
return not __salt__['cmd.retcode'](cmd)
|
return not __salt__['cmd.retcode'](cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user