[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 01/03: service: Don't say "running with value" when service f
From: |
Ludovic Courtès |
Subject: |
[shepherd] 01/03: service: Don't say "running with value" when service failed to start. |
Date: |
Mon, 13 Mar 2023 17:57:36 -0400 (EDT) |
civodul pushed a commit to branch master
in repository shepherd.
commit 37850cf606661a3fa70d167aebdbb2b7ff93d747
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Mar 13 09:18:59 2023 +0100
service: Don't say "running with value" when service failed to start.
* modules/shepherd/service.scm (service-controller): Do not emit
"running with value" message when VALUE is false.
---
modules/shepherd/service.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index 15e1a12..5d0bcaa 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -361,8 +361,9 @@ Log abnormal termination reported by @var{status}."
(put-message reply notification)
(loop 'starting value condition enabled? respawns)))))
(((? started-message?) value) ;no reply
- (local-output (l10n "Service ~a running with value ~s.")
- (canonical-name service) value)
+ (when value
+ (local-output (l10n "Service ~a running with value ~s.")
+ (canonical-name service) value))
(signal-condition! condition)
(loop (if (and value (not (one-shot? service)))
'running