mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
services: guix-publish: Depend on 'avahi-daemon' when needed.
* gnu/services/base.scm (guix-publish-shepherd-service): Add 'user-processes' to 'requirement'. When ADVERTISE? is true, also add 'avahi-daemon'.
This commit is contained in:
parent
59a6780f70
commit
f066e65713
1 changed files with 3 additions and 1 deletions
|
@ -1825,7 +1825,9 @@ (define (config->compression-options config)
|
||||||
advertise?)
|
advertise?)
|
||||||
(list (shepherd-service
|
(list (shepherd-service
|
||||||
(provision '(guix-publish))
|
(provision '(guix-publish))
|
||||||
(requirement '(guix-daemon))
|
(requirement `(user-processes
|
||||||
|
guix-daemon
|
||||||
|
,@(if advertise? '(avahi-daemon) '())))
|
||||||
(start #~(make-forkexec-constructor
|
(start #~(make-forkexec-constructor
|
||||||
(list #$(file-append guix "/bin/guix")
|
(list #$(file-append guix "/bin/guix")
|
||||||
"publish" "-u" "guix-publish"
|
"publish" "-u" "guix-publish"
|
||||||
|
|
Loading…
Reference in a new issue