From bfeec178dbd3fb9c254df3803f3b5ff43eb9c5ad Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Jun 2018 16:23:18 +0200 Subject: [PATCH] systemctl: if we can't detect the system-is-running state, assume it's not running --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3