diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2019-06-28 17:02:30 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-17 11:35:02 +0200 |
commit | 31cd5f63ce86a0784c4ef869c4d323a11ff14adc (patch) | |
tree | 4762477054b47738120d76397e38a1703ad449da /src/core/job.c | |
parent | cc2f3f05a77f34f867e2505eae0e67f056d28a15 (diff) | |
download | systemd-31cd5f63ce86a0784c4ef869c4d323a11ff14adc.tar.gz |
core: ExecCondition= for services
Closes #10596
Diffstat (limited to 'src/core/job.c')
-rw-r--r-- | src/core/job.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/job.c b/src/core/job.c index b280574aac..ced940e093 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -865,7 +865,8 @@ static void job_log_done_status_message(Unit *u, uint32_t job_id, JobType t, Job return; /* Show condition check message if the job did not actually do anything due to failed condition. */ - if (t == JOB_START && result == JOB_DONE && !u->condition_result) { + if ((t == JOB_START && result == JOB_DONE && !u->condition_result) || + (t == JOB_START && result == JOB_SKIPPED)) { log_struct(LOG_INFO, "MESSAGE=Condition check resulted in %s being skipped.", unit_status_string(u), "JOB_ID=%" PRIu32, job_id, |