diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-12 04:04:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-12 04:08:01 +0200 |
commit | 4a9e2fffdff2aade58d0d6052670b0eb0848af64 (patch) | |
tree | b3fc974c412ad94e58893059ffb70fb88dd35d92 | |
parent | 06ae4bfeb0b3aea82ca39acfdc4391850d57a2d8 (diff) |
systemctl: show whether we follow somebody in 'status' output
-rw-r--r-- | src/systemctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index c8384ff530..51f5bba84c 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1568,6 +1568,7 @@ typedef struct UnitStatusInfo { const char *sub_state; const char *description; + const char *following; const char *path; const char *default_control_group; @@ -1629,6 +1630,9 @@ static void print_status_info(UnitStatusInfo *i) { printf("\n"); + if (i->following) + printf("\t Follow: unit currently follows state of %s\n", i->following); + if (streq_ptr(i->load_state, "failed") || streq_ptr(i->load_state, "banned")) { on = ansi_highlight(true); @@ -1841,6 +1845,8 @@ static int status_property(const char *name, DBusMessageIter *iter, UnitStatusIn i->where = s; else if (streq(name, "What")) i->what = s; + else if (streq(name, "Following")) + i->following = s; } break; |