Fix possible lack of status messages on shutdown/reboot

Since 31a7eb86 the output on console can be disabled to avoid colliding with
gettys. However, it could also lead to a lack of messages during
shutdown/reboot.
This commit is contained in:
Olivier Brunel 2013-09-20 22:18:30 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 2f38577f30
commit 5b1869eaa2

View file

@ -1097,6 +1097,9 @@ void job_shutdown_magic(Job *j) {
if (!unit_has_name(j->unit, SPECIAL_SHUTDOWN_TARGET))
return;
/* In case messages on console has been disabled on boot */
j->unit->manager->no_console_output = false;
if (detect_container(NULL) > 0)
return;