mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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
This commit is contained in:
parent
477d4f7d24
commit
1964531ce5
1 changed files with 4 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2021, 2023 Andrew Tropin <andrew@trop.in>
|
;;; Copyright © 2021, 2023 Andrew Tropin <andrew@trop.in>
|
||||||
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
|
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
|
||||||
|
;;; Copyright © 2024 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -75,11 +76,8 @@ (define config
|
||||||
#~(begin
|
#~(begin
|
||||||
(use-modules (srfi srfi-34)
|
(use-modules (srfi srfi-34)
|
||||||
(system repl error-handling))
|
(system repl error-handling))
|
||||||
(apply
|
|
||||||
register-services
|
(register-services (map load '#$files))
|
||||||
(map
|
|
||||||
(lambda (file) (load file))
|
|
||||||
'#$files))
|
|
||||||
|
|
||||||
#$@(if daemonize?
|
#$@(if daemonize?
|
||||||
`((action 'root 'daemonize))
|
`((action 'root 'daemonize))
|
||||||
|
@ -90,9 +88,7 @@ (define config
|
||||||
'#$(append-map shepherd-service-provision
|
'#$(append-map shepherd-service-provision
|
||||||
(filter shepherd-service-auto-start?
|
(filter shepherd-service-auto-start?
|
||||||
services))))
|
services))))
|
||||||
(if (defined? 'start-in-the-background)
|
|
||||||
(start-in-the-background services-to-start)
|
(start-in-the-background services-to-start)
|
||||||
(for-each start services-to-start))
|
|
||||||
|
|
||||||
(redirect-port (open-input-file "/dev/null")
|
(redirect-port (open-input-file "/dev/null")
|
||||||
(current-input-port)))))
|
(current-input-port)))))
|
||||||
|
|
Loading…
Reference in a new issue