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