From 689460f82ad0f33253cd2e1b621febf1ed74a402 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 24 May 2023 12:44:58 +0200 Subject: 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'. --- gnu/services/base.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu/services') diff --git a/gnu/services/base.scm b/gnu/services/base.scm index fd79c9e232..c5b06b57e8 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1842,7 +1842,8 @@ proxy of 'guix-daemon'...~%") (list (shepherd-service (documentation "Run the Guix daemon.") (provision '(guix-daemon)) - (requirement '(user-processes)) + (requirement `(user-processes + ,@(if discover? '(avahi-daemon) '()))) (actions (list shepherd-set-http-proxy-action shepherd-discover-action)) (modules '((srfi srfi-1) -- cgit 1.4.1