ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
65878a
From f64dc9cfd4f2fb79c3b46b2657961b407c6b3235 Mon Sep 17 00:00:00 2001
65878a
From: Olivier Brunel <jjk@jjacky.com>
65878a
Date: Fri, 20 Sep 2013 22:18:30 +0200
65878a
Subject: [PATCH] Fix possible lack of status messages on shutdown/reboot
65878a
65878a
Since 31a7eb86 the output on console can be disabled to avoid colliding with
65878a
gettys. However, it could also lead to a lack of messages during
65878a
shutdown/reboot.
65878a
---
65878a
 src/core/job.c | 3 +++
65878a
 1 file changed, 3 insertions(+)
65878a
65878a
diff --git a/src/core/job.c b/src/core/job.c
65878a
index 5ea9803..7d2b994 100644
65878a
--- a/src/core/job.c
65878a
+++ b/src/core/job.c
65878a
@@ -1099,6 +1099,9 @@ void job_shutdown_magic(Job *j) {
65878a
         if (!unit_has_name(j->unit, SPECIAL_SHUTDOWN_TARGET))
65878a
                 return;
65878a
 
65878a
+        /* In case messages on console has been disabled on boot */
65878a
+        j->unit->manager->no_console_output = false;
65878a
+
65878a
         if (detect_container(NULL) > 0)
65878a
                 return;
65878a