]> git.pld-linux.org Git - packages/systemd.git/blame - shut-sysv-up.patch
- instead of hacking into fedora specific services provide our own
[packages/systemd.git] / shut-sysv-up.patch
CommitLineData
8e088cd5
TP
1diff -urNp systemd-37.orig/src/unit.c systemd-37/src/unit.c
2--- systemd-37.orig/src/unit.c 2011-09-23 16:28:27.000000000 +0200
3+++ systemd-37/src/unit.c 2011-12-05 21:37:15.000000000 +0100
fcfde7e0 4@@ -2432,7 +2432,14 @@ void unit_status_printf(Unit *u, const c
8e088cd5
TP
5 assert(u);
6 assert(format);
7
8- if (!UNIT_VTABLE(u)->show_status)
a6203073
JR
9+ if (!UNIT_VTABLE(u)->show_status
10+ || (u->manager->sysv_console
fcfde7e0
JR
11+ && (u->description != NULL
12+ && (startswith(u->description, "SYSV: ")
13+ || startswith(u->description, "LSB: ")))
a6203073
JR
14+ && (u->job == NULL || u->job->result == JOB_DONE)
15+ && UNIT_VTABLE(u)->active_state(u) != UNIT_FAILED
16+ && LOG_PRI(log_get_max_level()) <= LOG_INFO))
8e088cd5
TP
17 return;
18
d374e721 19 if (!manager_get_show_status(u->manager))
This page took 0.304804 seconds and 4 git commands to generate.