mirror of
git://github.com/lxc/lxc
synced 2025-09-01 05:19:56 +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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user