Call update-rc.d with "remove" to disable a service. Also required by #1103.

This commit is contained in:
Tom Vaughan 2012-04-19 15:37:20 -03:00
parent 90b87c0806
commit d0030677e6

View File

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