diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-05-13 23:29:19 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-05-14 14:29:54 +0200 |
commit | 7cf82e0bb1ebafd054824d6fc7121050397824e9 (patch) | |
tree | f192a8bb9d746cdb733b3a1c1132a0288b41fe21 /src/core/job.c | |
parent | 1f136e7acffe0354c0a0639a6280c6e75a6d7739 (diff) |
job: info message if JOB_VERIFY_ACTIVE detects an inactive unit
Diffstat (limited to 'src/core/job.c')
-rw-r--r-- | src/core/job.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/job.c b/src/core/job.c index c9ca60d88d..8d51aa3fdd 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -607,6 +607,14 @@ static void job_print_status_message(Unit *u, JobType t, JobResult result) { default: ; } + + } else if (t == JOB_VERIFY_ACTIVE) { + + /* When verify-active detects the unit is inactive, report it. + * Most likely a DEPEND warning from a requisiting unit will + * occur next and it's nice to see what was requisited. */ + if (result == JOB_SKIPPED) + unit_status_printf(u, ANSI_HIGHLIGHT_ON " INFO " ANSI_HIGHLIGHT_OFF, "%s is not active.", unit_description(u)); } } |