X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjob.c;h=0b6d321e991b74aafcad7b7a6110624777636e51;hb=f1a1cd6497a970a8744b6d71cf5355fa9f75669c;hp=c219b0d18ba926fb5c1871a3871306c0e7af3f2c;hpb=76bf48b7d09b6e22d1952ac2fa07fec8ee501b76;p=elogind.git diff --git a/src/job.c b/src/job.c index c219b0d18..0b6d321e9 100644 --- a/src/job.c +++ b/src/job.c @@ -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 */