valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0104-Fix-possible-lack-of-status-messages-on-shutdown-reb.patch

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