[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: home: services: shepherd: Use the 0.10.x interface.
From: |
guix-commits |
Subject: |
06/07: home: services: shepherd: Use the 0.10.x interface. |
Date: |
Mon, 8 Jan 2024 18:52:29 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 1964531ce5365d6744e3909960e9d608be624228
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jan 5 10:59:42 2024 +0100
home: services: shepherd: Use the 0.10.x interface.
* gnu/home/services/shepherd.scm (home-shepherd-configuration-file):
Pass ‘register-services’ a list. Call ‘start-in-the-background’
unconditionally.
Change-Id: Id7ba005949653a9ac065c47eddb425df4f4792aa
---
gnu/home/services/shepherd.scm | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm
index bd068c37fc..176f4575cb 100644
--- a/gnu/home/services/shepherd.scm
+++ b/gnu/home/services/shepherd.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2021, 2023 Andrew Tropin <andrew@trop.in>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
+;;; Copyright © 2024 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -75,11 +76,8 @@ as shepherd package."
#~(begin
(use-modules (srfi srfi-34)
(system repl error-handling))
- (apply
- register-services
- (map
- (lambda (file) (load file))
- '#$files))
+
+ (register-services (map load '#$files))
#$@(if daemonize?
`((action 'root 'daemonize))
@@ -90,9 +88,7 @@ as shepherd package."
'#$(append-map shepherd-service-provision
(filter shepherd-service-auto-start?
services))))
- (if (defined? 'start-in-the-background)
- (start-in-the-background services-to-start)
- (for-each start services-to-start))
+ (start-in-the-background services-to-start)
(redirect-port (open-input-file "/dev/null")
(current-input-port)))))
- branch master updated (519e1e3eb8 -> 3eac1c82f7), guix-commits, 2024/01/08
- 04/07: system: hurd: Use the Shepherd 0.10.x., guix-commits, 2024/01/08
- 05/07: services: shepherd: Use the 0.10.x GOOPS-less interface., guix-commits, 2024/01/08
- 01/07: gnu: guile-fibers: Apply upstream patch fixing libevent timers., guix-commits, 2024/01/08
- 03/07: tests: childhurd: Increase SSH connection timeout., guix-commits, 2024/01/08
- 06/07: home: services: shepherd: Use the 0.10.x interface.,
guix-commits <=
- 07/07: services: bitlbee: Use ‘make-inetd-constructor’ unconditionally., guix-commits, 2024/01/08
- 02/07: services: openssh: Add dependency on ‘networking’., guix-commits, 2024/01/08