[systemd-devel] [PATCH 3/3] Fix possible lack of status messages on shutdown/reboot

Olivier Brunel jjk at jjacky.com
Fri Sep 20 13:18:30 PDT 2013


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.
---
 src/core/job.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/core/job.c b/src/core/job.c
index 85f77e8..fd22184 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -1100,6 +1100,9 @@ void job_shutdown_magic(Job *j) {
         if (detect_container(NULL) > 0)
                 return;
 
+        /* In case messages on console has been disabled on boot */
+        j->unit->manager->no_console_output = false;
+
         asynchronous_sync();
 }
 
-- 
1.8.4



More information about the systemd-devel mailing list