Commit a99e57fe by Stéphane Graber Committed by GitHub

Merge pull request #1264 from brauner/2016-10-30/fix_lxc_stop_exit_code

tools: use correct exit code for lxc-stop
parents d93cd547 dfef27a5
...@@ -226,7 +226,10 @@ int main(int argc, char *argv[]) ...@@ -226,7 +226,10 @@ int main(int argc, char *argv[])
if (!c->is_running(c)) { if (!c->is_running(c)) {
fprintf(stderr, "%s is not running\n", c->name); fprintf(stderr, "%s is not running\n", c->name);
ret = EXIT_FAILURE; /* Per our manpage we need to exit with exit code:
* 2: The specified container exists but was not running.
*/
ret = 2;
goto out; goto out;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment