summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-05-05 11:54:43 +0200
committerLudovic Courtès <ludo@gnu.org>2024-05-05 12:06:23 +0200
commitda9f509b0300f1b6b979c68a52d8669f9bcb89a7 (patch)
treeea3c568855a7044a829ca769d00a6e60bcfc79dc
parent49232eff56c4dcf0f0557c5ddf5b252f8373370a (diff)
downloadguix-patches-da9f509b0300f1b6b979c68a52d8669f9bcb89a7.tar
guix-patches-da9f509b0300f1b6b979c68a52d8669f9bcb89a7.tar.gz
services: guix: Use Shepherd 0.10 API for actions.base-for-issue-70800base-for-issue-70798base-for-issue-70499
The ‘action’ method was deprecated in Shepherd 0.10.0. * gnu/services/base.scm (shepherd-set-http-proxy-action) (shepherd-discover-action): Use ‘perform-service-action’ instead of the now-deprecated ‘action’ method. Change-Id: Ibe1c79a44148596292c2c8907011ec787f8a9ddd
-rw-r--r--gnu/services/base.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 5cf6083821..85160bd3ab 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1877,7 +1877,8 @@ proxy of 'guix-daemon' to ~s...~%"
(format #t "clearing HTTP/HTTPS \
proxy of 'guix-daemon'...~%")
(unsetenv "http_proxy")))
- (action 'guix-daemon 'restart)
+ (perform-service-action (lookup-service 'guix-daemon)
+ 'restart)
(environ environment)
#t)))))
@@ -1898,7 +1899,8 @@ proxy of 'guix-daemon'...~%")
(begin
(format #t "disable substitute servers discovery~%")
(unsetenv "discover")))
- (action 'guix-daemon 'restart)
+ (perform-service-action (lookup-service 'guix-daemon)
+ 'restart)
(environ environment)
#t)))))