]> err.no Git - systemd/commitdiff
job: show failure message only for start jobs
authorLennart Poettering <lennart@poettering.net>
Sun, 26 Sep 2010 23:37:22 +0000 (01:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 26 Sep 2010 23:37:22 +0000 (01:37 +0200)
src/job.c

index c219b0d18ba926fb5c1871a3871306c0e7af3f2c..0b6d321e991b74aafcad7b7a6110624777636e51 100644 (file)
--- 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 */