]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: handle --log-target=null when calling systemd-shutdown 424/head
authorIago López Galeiras <iago@endocode.com>
Tue, 30 Jun 2015 13:08:49 +0000 (15:08 +0200)
committerIago López Galeiras <iago@endocode.com>
Tue, 30 Jun 2015 13:13:57 +0000 (15:13 +0200)
When shutting down, if systemd was started with --log-target=null,
systemd-shutdown was being called with --log-target=console.

src/core/main.c

index 332453a0ea01e2517aa808550204827eb74bdd1c..523f0ce0206cefb252bf53a91d92197a0c855acd 100644 (file)
@@ -1995,6 +1995,10 @@ finish:
                         command_line[pos++] = "kmsg";
                         break;
 
+                case LOG_TARGET_NULL:
+                        command_line[pos++] = "null";
+                        break;
+
                 case LOG_TARGET_CONSOLE:
                 default:
                         command_line[pos++] = "console";