From: Lennart Poettering Date: Mon, 25 Jun 2018 14:23:18 +0000 (+0200) Subject: systemctl: if we can't detect the system-is-running state, assume it's not running X-Git-Tag: v240~1041^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9411%2Fhead;p=thirdparty%2Fsystemd.git systemctl: if we can't detect the system-is-running state, assume it's not running --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index ca886a845ef..9c6156237a2 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6619,7 +6619,7 @@ static int is_system_running(int argc, char *argv[], void *userdata) { if (!arg_quiet) puts("unknown"); - return 0; + return EXIT_FAILURE; } if (!arg_quiet)