mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 22:26:40 -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?)
|
||||
(list (shepherd-service
|
||||
(provision '(guix-publish))
|
||||
(requirement '(guix-daemon))
|
||||
(requirement `(user-processes
|
||||
guix-daemon
|
||||
,@(if advertise? '(avahi-daemon) '())))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append guix "/bin/guix")
|
||||
"publish" "-u" "guix-publish"
|
||||
|
|
Loading…
Reference in a new issue