mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: guix: Use Shepherd 0.10 API for actions.
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
This commit is contained in:
parent
49232eff56
commit
da9f509b03
1 changed files with 4 additions and 2 deletions
|
@ -1877,7 +1877,8 @@ (define shepherd-set-http-proxy-action
|
|||
(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 @@ (define shepherd-discover-action
|
|||
(begin
|
||||
(format #t "disable substitute servers discovery~%")
|
||||
(unsetenv "discover")))
|
||||
(action 'guix-daemon 'restart)
|
||||
(perform-service-action (lookup-service 'guix-daemon)
|
||||
'restart)
|
||||
(environ environment)
|
||||
#t)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue