mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
services: guix: Depend on 'avahi-daemon' when 'discover?' is set.
Previously, with shepherd 0.10.0, guix-daemon would start quickly, possibly before avahi-daemon is running. Consequently, its "guix discover" child process would exit immediately with a warning saying "Avahi daemon is not running". * gnu/services/base.scm (guix-shepherd-service): When DISCOVER? is true, add 'avahi-daemon' to 'requirement'.
This commit is contained in:
parent
8b18fa7e07
commit
689460f82a
1 changed files with 2 additions and 1 deletions
|
@ -1842,7 +1842,8 @@ (define (guix-shepherd-service config)
|
||||||
(list (shepherd-service
|
(list (shepherd-service
|
||||||
(documentation "Run the Guix daemon.")
|
(documentation "Run the Guix daemon.")
|
||||||
(provision '(guix-daemon))
|
(provision '(guix-daemon))
|
||||||
(requirement '(user-processes))
|
(requirement `(user-processes
|
||||||
|
,@(if discover? '(avahi-daemon) '())))
|
||||||
(actions (list shepherd-set-http-proxy-action
|
(actions (list shepherd-set-http-proxy-action
|
||||||
shepherd-discover-action))
|
shepherd-discover-action))
|
||||||
(modules '((srfi srfi-1)
|
(modules '((srfi srfi-1)
|
||||||
|
|
Loading…
Reference in a new issue