From 99fe051fb8cc897014f0fcc3524089b7647cfaf2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 14 Jan 2013 12:37:55 +0100 Subject: [PATCH] get_service_status() is now using self.service_control() to check status Fixes a bug where init-scripts were not used --- service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service b/service index 9eca4522887..80da454336f 100644 --- a/service +++ b/service @@ -300,7 +300,8 @@ class LinuxService(Service): self.svc_initctl = location['initctl'] def get_service_status(self): - rc, status_stdout, status_stderr = self.execute_command("%s %s status %s" % (self.svc_cmd, self.name, self.arguments)) + self.action = "status" + rc, status_stdout, status_stderr = self.service_control() # Check if we got upstart on the system and then the job state if self.svc_initctl != None and self.running is None: