mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00:00
core: handle --log-target=null when calling systemd-shutdown
When shutting down, if systemd was started with --log-target=null,
systemd-shutdown was being called with --log-target=console.
(cherry picked from commit 10f00ff17b)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
7653c61c4f
commit
3fd4f8ef4d
@@ -2001,6 +2001,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";
|
||||
|
||||
Reference in New Issue
Block a user