2
0
mirror of git://github.com/lxc/lxc synced 2025-08-30 21:39:40 +00:00

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

tools: use correct exit code for lxc-stop
This commit is contained in:
Stéphane Graber
2016-10-30 14:26:54 -04:00
committed by GitHub

View File

@@ -226,7 +226,10 @@ int main(int argc, char *argv[])
if (!c->is_running(c)) {
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;
}