diff options
author | Olivier Brunel <jjk@jjacky.com> | 2013-09-20 22:18:30 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-13 23:22:31 -0500 |
commit | 5b1869eaa22e365ab6595924fe96549b279b5ebc (patch) | |
tree | 782c07a3e5d5a9e82ba9690bf59e1271e01ca780 | |
parent | 2f38577f3040eedebfe1ace05d5b5a779a588af1 (diff) |
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.
-rw-r--r-- | src/core/job.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/job.c b/src/core/job.c index fc446fbc42..0dd161c1c5 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -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; |