Sysvinit - Enabling a service should use "defaults" if no runlevels are specified

pull/49215/head
nervo 6 years ago committed by Matt Clay
parent 687df97b7b
commit 1c6c2e5b0d

@ -0,0 +1,2 @@
bugfixes:
- sysvinit - enabling a service should use "defaults" if no runlevels are specified

@ -267,7 +267,7 @@ def main():
# Perform enable/disable here # Perform enable/disable here
if enabled: if enabled:
if location.get('update-rc.d'): if location.get('update-rc.d'):
(rc, out, err) = module.run_command("%s %s enable" % (location['update-rc.d'], name)) (rc, out, err) = module.run_command("%s %s defaults" % (location['update-rc.d'], name))
elif location.get('chkconfig'): elif location.get('chkconfig'):
(rc, out, err) = module.run_command("%s %s on" % (location['chkconfig'], name)) (rc, out, err) = module.run_command("%s %s on" % (location['chkconfig'], name))
else: else:

Loading…
Cancel
Save