chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f136e7
)
job: info message if JOB_VERIFY_ACTIVE detects an inactive unit
author
Michal Schmidt
<mschmidt@redhat.com>
Sun, 13 May 2012 21:29:19 +0000
(23:29 +0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Mon, 14 May 2012 12:29:54 +0000
(14:29 +0200)
src/core/job.c
patch
|
blob
|
history
diff --git
a/src/core/job.c
b/src/core/job.c
index c9ca60d88dc965c2bcfc3b2d3c739bebac24b4b2..8d51aa3fdd7036be8286f3acb2cd3b45663bf84a 100644
(file)
--- 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));
}
}