mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix bug in service where upstart services incorrectly use init scripts
Fixes #1170
This commit is contained in:
committed by
Matt Clay
parent
c2bf2c7c54
commit
d7ce6b0d4b
@@ -853,7 +853,7 @@ class LinuxService(Service):
|
||||
# systemd commands take the form <cmd> <action> <name>
|
||||
svc_cmd = self.svc_cmd
|
||||
arguments = "%s %s" % (self.__systemd_unit, arguments)
|
||||
elif self.svc_initscript:
|
||||
elif self.svc_cmd is None and self.svc_initscript:
|
||||
# upstart
|
||||
svc_cmd = "%s" % self.svc_initscript
|
||||
|
||||
|
||||
Reference in New Issue
Block a user