Fix bug in service where upstart services incorrectly use init scripts
Fixes #1170
This commit is contained in:
parent
c2bf2c7c54
commit
d7ce6b0d4b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue