mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Merge pull request #6524 from tyll/update_rc_d_disable
service module: Properly disable Debian services
This commit is contained in:
commit
0bec29a626
1 changed files with 2 additions and 1 deletions
|
@ -687,7 +687,8 @@ class LinuxService(Service):
|
||||||
|
|
||||||
return self.execute_command("%s %s enable" % (self.enable_cmd, self.name))
|
return self.execute_command("%s %s enable" % (self.enable_cmd, self.name))
|
||||||
else:
|
else:
|
||||||
return self.execute_command("%s -f %s remove" % (self.enable_cmd, self.name))
|
return self.execute_command("%s %s disable" % (self.enable_cmd,
|
||||||
|
self.name))
|
||||||
|
|
||||||
# we change argument depending on real binary used:
|
# we change argument depending on real binary used:
|
||||||
# - update-rc.d and systemctl wants enable/disable
|
# - update-rc.d and systemctl wants enable/disable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue