diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-21 23:41:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-21 23:41:54 +0200 |
commit | bc0f8771f23dc3952bf4b06301dc842ba625a0f2 (patch) | |
tree | 94654d913760d92660ffa0a6baf62681492bbbfb /src/unit.c | |
parent | c0120d992ce5ab004d9be5ff6ca15e5fe17f9884 (diff) |
unit: add simple only-by-dependency flag for units
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unit.c b/src/unit.c index 012edd47a8..b38be317ee 100644 --- a/src/unit.c +++ b/src/unit.c @@ -593,7 +593,8 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { "%s\tActive Enter Timestamp: %s\n" "%s\tActive Exit Timestamp: %s\n" "%s\tInactive Enter Timestamp: %s\n" - "%s\tGC Check Good: %s\n", + "%s\tGC Check Good: %s\n" + "%s\tOnly By Dependency: %s\n", prefix, u->meta.id, prefix, unit_description(u), prefix, strna(u->meta.instance), @@ -603,7 +604,8 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { prefix, strna(format_timestamp(timestamp2, sizeof(timestamp2), u->meta.active_enter_timestamp)), prefix, strna(format_timestamp(timestamp3, sizeof(timestamp3), u->meta.active_exit_timestamp)), prefix, strna(format_timestamp(timestamp4, sizeof(timestamp4), u->meta.inactive_enter_timestamp)), - prefix, yes_no(unit_check_gc(u))); + prefix, yes_no(unit_check_gc(u)), + prefix, yes_no(u->meta.only_by_dependency)); SET_FOREACH(t, u->meta.names, i) fprintf(f, "%s\tName: %s\n", prefix, t); |