summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-08 02:31:36 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-08 02:31:36 +0200
commit00dc5d769ac4a4019d6b6fe22e8383ec8b030a96 (patch)
treedb347d86cae6f68f70c085b6560cb313248f2166 /src/systemctl.c
parentc2b3f093d98a9751ba413c9b5d5c572a8a15932c (diff)
unit: introduce 'banned' load state for units symlinked to /dev/null
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 918dcbe8b5..4beec0fca5 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -297,7 +297,8 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) {
if (!output_show_job(u))
continue;
- if (!streq(u->load_state, "loaded")) {
+ if (!streq(u->load_state, "loaded") &&
+ !streq(u->load_state, "banned")) {
on_loaded = ansi_highlight(true);
off_loaded = ansi_highlight(false);
} else
@@ -1628,7 +1629,8 @@ static void print_status_info(UnitStatusInfo *i) {
printf("\n");
- if (streq_ptr(i->load_state, "failed")) {
+ if (streq_ptr(i->load_state, "failed") ||
+ streq_ptr(i->load_state, "banned")) {
on = ansi_highlight(true);
off = ansi_highlight(false);
} else