mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Merge pull request #49 from jeromelebleu/dev
Fix status for service loading
This commit is contained in:
commit
c48f3a6afa
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue