job: show failure message only for start jobs

This commit is contained in:
Lennart Poettering 2010-09-27 01:37:22 +02:00
parent 334d0069f5
commit 0ebd74d8d9

View File

@ -489,7 +489,7 @@ int job_finish_and_invalidate(Job *j, bool success) {
t = j->type;
job_free(j);
if (!success)
if (!success && j->type == JOB_START)
unit_status_printf(u, "Starting %s " ANSI_HIGHLIGHT_ON "failed" ANSI_HIGHLIGHT_OFF ".\n", unit_description(u));
/* Fail depending jobs on failure */