Fix bug in service where upstart services incorrectly use init scripts

Fixes #1170
This commit is contained in:
James Cammarata 2015-05-04 13:59:15 -05:00 committed by Matt Clay
parent c2bf2c7c54
commit d7ce6b0d4b

View file

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