From: Michal Schmidt Date: Sun, 13 May 2012 21:29:19 +0000 (+0200) Subject: job: info message if JOB_VERIFY_ACTIVE detects an inactive unit X-Git-Tag: v183~117 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cf82e0bb1ebafd054824d6fc7121050397824e9;p=systemd job: info message if JOB_VERIFY_ACTIVE detects an inactive unit --- diff --git a/src/core/job.c b/src/core/job.c index c9ca60d8..8d51aa3f 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)); } }