guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/17: services: guix: Depend on 'avahi-daemon' when 'discover?' is set.


From: guix-commits
Subject: 02/17: services: guix: Depend on 'avahi-daemon' when 'discover?' is set.
Date: Wed, 24 May 2023 09:05:32 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 689460f82ad0f33253cd2e1b621febf1ed74a402
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed May 24 12:44:58 2023 +0200

    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(-)

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]