mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 03:21:49 +02:00
services: herd: Adjust to <live-service> changes.
This is a followup to a2c759c830.
* guix/scripts/system/reconfigure.scm (running-services): Fill in the
'transient?' field of <live-service>.
* tests/services.scm ("shepherd-service-upgrade: one unchanged, one upgraded, one new")
("shepherd-service-upgrade: service depended on is not unloaded")
("shepherd-service-upgrade: obsolete services that depend on each
other"): Adjust calls to 'live-service'.
This commit is contained in:
+10
-10
@@ -1,5 +1,5 @@
|
||||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2015-2019, 2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
@@ -212,9 +212,9 @@
|
||||
;; because it is not currently running. 'baz' is loaded because it's
|
||||
;; a new service.
|
||||
(shepherd-service-upgrade
|
||||
(list (live-service '(foo) '() #t)
|
||||
(live-service '(bar) '() #f)
|
||||
(live-service '(root) '() #t)) ;essential!
|
||||
(list (live-service '(foo) '() #f #t)
|
||||
(live-service '(bar) '() #f #f)
|
||||
(live-service '(root) '() #f #t)) ;essential!
|
||||
(list (shepherd-service (provision '(foo))
|
||||
(start #t))
|
||||
(shepherd-service (provision '(bar))
|
||||
@@ -234,9 +234,9 @@
|
||||
;; unloaded because 'foo' depends on it. 'foo' gets replaced but it
|
||||
;; must be restarted manually.
|
||||
(shepherd-service-upgrade
|
||||
(list (live-service '(foo) '(bar) #t)
|
||||
(live-service '(bar) '() #t) ;still used!
|
||||
(live-service '(baz) '() #t))
|
||||
(list (live-service '(foo) '(bar) #f #t)
|
||||
(live-service '(bar) '() #f #t) ;still used!
|
||||
(live-service '(baz) '() #f #t))
|
||||
(list (shepherd-service (provision '(foo))
|
||||
(start #t)))))
|
||||
(lambda (unload restart)
|
||||
@@ -251,9 +251,9 @@
|
||||
;; 'foo', 'bar', and 'baz' depend on each other, but all of them are
|
||||
;; obsolete, and thus should be unloaded.
|
||||
(shepherd-service-upgrade
|
||||
(list (live-service '(foo) '(bar) #t) ;obsolete
|
||||
(live-service '(bar) '(baz) #t) ;obsolete
|
||||
(live-service '(baz) '() #t)) ;obsolete
|
||||
(list (live-service '(foo) '(bar) #f #t) ;obsolete
|
||||
(live-service '(bar) '(baz) #f #t) ;obsolete
|
||||
(live-service '(baz) '() #f #t)) ;obsolete
|
||||
(list (shepherd-service (provision '(qux))
|
||||
(start #t)))))
|
||||
(lambda (unload restart)
|
||||
|
||||
Reference in New Issue
Block a user