chiark / gitweb /
manager: optionally print status updates to console on boot
[elogind.git] / src / job.c
index a090ec9b113cc2e5c3c111c55d6b97628e98d0db..2199d75f6092df0a4bc232f2ca07dc8080f6c667 100644 (file)
--- a/src/job.c
+++ b/src/job.c
@@ -483,6 +483,9 @@ int job_finish_and_invalidate(Job *j, bool success) {
         t = j->type;
         job_free(j);
 
+        if (!success)
+                unit_status_printf(u, "Starting %s... " ANSI_HIGHLIGHT_ON "failed" ANSI_HIGHLIGHT_OFF ".\n", unit_description(u));
+
         /* Fail depending jobs on failure */
         if (!success) {