mirror of
https://github.com/systemd/systemd.git
synced 2025-02-22 09:57:34 +03:00
main: don't open console in --test mode
This commit is contained in:
parent
3a76266192
commit
8d025b231b
2
main.c
2
main.c
@ -615,7 +615,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
/* Reset the console, but only if this is really init and we
|
||||
* are freshly booted */
|
||||
if (running_as == MANAGER_INIT)
|
||||
if (running_as == MANAGER_INIT && action == ACTION_RUN)
|
||||
console_setup(getpid() == 1 && !serialization);
|
||||
|
||||
/* Make sure D-Bus doesn't fiddle with the SIGPIPE handlers */
|
||||
|
Loading…
x
Reference in New Issue
Block a user