From 4c902a432ee6886e90dff6ece2fb24ad5f8af7a4 Mon Sep 17 00:00:00 2001 From: Jerome Lebleu Date: Thu, 12 Dec 2013 00:22:51 +0100 Subject: [PATCH] Fix status for service loading --- yunohost_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yunohost_service.py b/yunohost_service.py index 0989e458..f4e83a2b 100644 --- a/yunohost_service.py +++ b/yunohost_service.py @@ -127,7 +127,8 @@ def service_status(names=None): ret = subprocess.check_output(status.split(), stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: # TODO: log error - result[name]['status'] = _("inactive") + if 'usage:' not in e.output.lower(): + result[name]['status'] = _("inactive") else: result[name]['status'] = _("running")