]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: if we can't detect the system-is-running state, assume it's not running 9411/head
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jun 2018 14:23:18 +0000 (16:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Jun 2018 15:10:27 +0000 (17:10 +0200)
src/systemctl/systemctl.c

index ca886a845ef34ce4ae8efe32548974f26d764ac0..9c6156237a21ef58f5f68ed28c3db8dd40a92719 100644 (file)
@@ -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)