From 088b930808448f1e74278bc5aeb7ad66704263b6 Mon Sep 17 00:00:00 2001 From: Jonan Date: Thu, 2 Mar 2017 16:58:31 +0800 Subject: [PATCH] Update service.py Ensure "initctl status servicename" passes along arguments to check correct instance. --- 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 a7175a4014..8f27cb97ab 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -622,7 +622,7 @@ class LinuxService(Service): # if we have decided the service is managed by upstart, we check for some additional output... if self.svc_initctl and self.running is None: # check the job status by upstart response - initctl_rc, initctl_status_stdout, initctl_status_stderr = self.execute_command("%s status %s" % (self.svc_initctl, self.name)) + initctl_rc, initctl_status_stdout, initctl_status_stderr = self.execute_command("%s status %s %s" % (self.svc_initctl, self.name, self.arguments )) if "stop/waiting" in initctl_status_stdout: self.running = False elif "start/running" in initctl_status_stdout: