mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
guix system: Use 'shepherd-service-lookup-procedure' in 'service-upgrade'.
* guix/scripts/system.scm (service-upgrade)[essential?]: SERVICE is now
a <live-service>.
[lookup-target, lookup-live, running?, stopped, obsolete?]: New
procedures.
[to-load, to-unload]: Use them. TO-UNLOAD is now a list of
<live-service>.
(call-with-service-upgrade-info): Extract symbols from TO-UNLOAD.
* tests/system.scm ("service-upgrade: one unchanged, one upgraded, one
new"): Adjust accordingly.
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
list))
|
||||
|
||||
(test-equal "service-upgrade: one unchanged, one upgraded, one new"
|
||||
'((bar) ;unload
|
||||
'(((bar)) ;unload
|
||||
((bar) (baz))) ;load
|
||||
(call-with-values
|
||||
(lambda ()
|
||||
@@ -146,6 +146,7 @@
|
||||
(shepherd-service (provision '(baz))
|
||||
(start #t)))))
|
||||
(lambda (unload load)
|
||||
(list unload (map shepherd-service-provision load)))))
|
||||
(list (map live-service-provision unload)
|
||||
(map shepherd-service-provision load)))))
|
||||
|
||||
(test-end)
|
||||
|
||||
Reference in New Issue
Block a user