summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-07 04:11:31 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-07 04:11:31 +0200
commit222ae6a8d7e27dd36552cb9574e63cbdfdf2d264 (patch)
tree0199f004eec3c6f6e968eee43b4e71aececad430 /src/job.c
parent51b4af2c2833691976844a13464c1301643043d3 (diff)
unit: introduce OnFailureIsolate=
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/job.c b/src/job.c
index a3be7becaf..dcfa323b0e 100644
--- a/src/job.c
+++ b/src/job.c
@@ -563,8 +563,14 @@ int job_finish_and_invalidate(Job *j, JobResult result) {
* the unit itself. We don't tread JOB_CANCELED as failure in
* this context. And JOB_FAILURE is already handled by the
* unit itself. */
- if (result == JOB_TIMEOUT || result == JOB_DEPENDENCY)
+ if (result == JOB_TIMEOUT || result == JOB_DEPENDENCY) {
+ log_notice("Job %s/%s failed with result '%s'.",
+ u->meta.id,
+ job_type_to_string(t),
+ job_result_to_string(result));
+
unit_trigger_on_failure(u);
+ }
/* Try to start the next jobs that can be started */
SET_FOREACH(other, u->meta.dependencies[UNIT_AFTER], i)