guix-commits
[Top][All Lists]
Advanced

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

[shepherd] 02/02: transient: Created services depend on ‘transient’.


From: Ludovic Courtès
Subject: [shepherd] 02/02: transient: Created services depend on ‘transient’.
Date: Fri, 17 Jan 2025 16:21:34 -0500 (EST)

civodul pushed a commit to branch main
in repository shepherd.

commit 609e50bcfc224d093ae4fc0176ee77f8ae6f7ca9
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jan 17 22:19:59 2025 +0100

    transient: Created services depend on ‘transient’.
    
    * modules/shepherd/service/transient.scm (transient-service)[spawn-action]:
    Pass #:requirement to ‘spawn-transient-service’.
---
 modules/shepherd/service/transient.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/shepherd/service/transient.scm 
b/modules/shepherd/service/transient.scm
index bd2f11e..8721a7c 100644
--- a/modules/shepherd/service/transient.scm
+++ b/modules/shepherd/service/transient.scm
@@ -83,7 +83,9 @@ commands in the background."
     (action 'spawn
             (lambda (_ . args)
               (let ((command options (span string? args)))
-                (apply spawn-transient-service command options)))
+                (apply spawn-transient-service command
+                       #:requirement (list (first provision))
+                       options)))
             (l10n "Spawn the given program as a transient service, running in
 the background.")))
 



reply via email to

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