mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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:
parent
a5d78eb64b
commit
f20a7b8696
2 changed files with 34 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue