From d7ce6b0d4b0e9617259d72c7a26a1562b32eaee8 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 4 May 2015 13:59:15 -0500 Subject: [PATCH] Fix bug in service where upstart services incorrectly use init scripts Fixes #1170 --- lib/ansible/modules/system/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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