X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fjob.c;h=8d51aa3fdd7036be8286f3acb2cd3b45663bf84a;hp=107961ae25457376fb78a98bd812223d6021f711;hb=9946996cda11a18b44d82344676e5a0e96339408;hpb=c69182961b00707d977957cf81d5c41cfbeab429 diff --git a/src/core/job.c b/src/core/job.c index 107961ae2..8d51aa3fd 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -587,7 +587,7 @@ static void job_print_status_message(Unit *u, JobType t, JobResult result) { ; } - } else if (t == JOB_STOP) { + } else if (t == JOB_STOP || t == JOB_RESTART) { format = format_table->finished_stop_job[result]; if (!format) @@ -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)); } }