X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=main.c;h=d2721fd0996ea975a17b4a4d328fecedd21263eb;hp=5b23c937b7386e69db20551c3942574d6b248c93;hb=8d025b231b97da7b5cf908309f23e5af78bae4a4;hpb=3a76266192da84f6f7b84725e7647c82f8407278 diff --git a/main.c b/main.c index 5b23c937b..d2721fd09 100644 --- a/main.c +++ b/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 */