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:
Iago López Galeiras
2015-07-07 07:32:59 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 7653c61c4f
commit 3fd4f8ef4d
+4
View File
@@ -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";