diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index 0c433bb8cc..3589340f15 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -853,7 +853,7 @@ class LinuxService(Service): # systemd commands take the form 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