main: don't open console in --test mode

This commit is contained in:
Lennart Poettering 2010-04-23 23:26:19 +02:00
parent 3a76266192
commit 8d025b231b
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -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 */