guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[shepherd] 01/02: service: Remove unnecessary termination message for on


From: Ludovic Courtès
Subject: [shepherd] 01/02: service: Remove unnecessary termination message for one-shot services.
Date: Mon, 6 Mar 2023 06:01:13 -0500 (EST)

civodul pushed a commit to branch master
in repository shepherd.

commit 5a35b7f0885ea51335ef4a5a5318dd8a3cad44b8
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Mar 6 11:58:55 2023 +0100

    service: Remove unnecessary termination message for one-shot services.
    
    Suggested by bjc on #guix.
    
    * modules/shepherd/service.scm (start): Remove unnecessary
    'notify-termination' message for one-shot services.
---
 modules/shepherd/service.scm | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index ca039e9..c788f07 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -650,10 +650,6 @@ that could not be started."
                         (put-message notification running)
                         running))))))
 
-          ;; Status message.
-           (when (one-shot? obj)
-             (put-message (service-control obj) 'notify-termination))
-
            (local-output (if running
                             (l10n "Service ~a has been started.")
                              (l10n "Service ~a could not be started."))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]