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'.master
parent
59a6780f70
commit
f066e65713
|
@ -1825,7 +1825,9 @@ raise a deprecation warning if the 'compression-level' field was used."
|
||||||
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"
|
||||||
|
|
Reference in New Issue