mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
job: info message if JOB_VERIFY_ACTIVE detects an inactive unit
This commit is contained in:
parent
1f136e7acf
commit
7cf82e0bb1
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue