Skip to content

Commit

Permalink
[fix] _run_service_command was not properly returning False if comman…
Browse files Browse the repository at this point in the history
…d failed (#616)
  • Loading branch information
alexAubin committed Jan 17, 2019
1 parent 808d844 commit bfe5056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yunohost/service.py
Expand Up @@ -663,7 +663,7 @@ def _run_service_command(action, service):
try:
# Launch the command
logger.debug("Running '%s'" % cmd)
p = subprocess.Popen(cmd.split(), stderr=subprocess.STDOUT)
p = subprocess.check_call(cmd.split(), stderr=subprocess.STDOUT)
# If this command needs a lock (because the service uses yunohost
# commands inside), find the PID and add a lock for it
if need_lock:
Expand Down

0 comments on commit bfe5056

Please sign in to comment.