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:
parent
2f38577f30
commit
5b1869eaa2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue