mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
services: avahi: Read PID file from /run.
* gnu/services/avahi.scm (%avahi-activation, avahi-shepherd-service):
Use /run/avahi-daemon/ instead of /var/run/avahi-daemon/. This was the
case since the switch to Avahi 0.7 (commit
550f4509ac
).
This commit is contained in:
parent
418cbf6e22
commit
ad7a807d84
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ (define %avahi-activation
|
||||||
;; Activation gexp.
|
;; Activation gexp.
|
||||||
#~(begin
|
#~(begin
|
||||||
(use-modules (guix build utils))
|
(use-modules (guix build utils))
|
||||||
(mkdir-p "/var/run/avahi-daemon")))
|
(mkdir-p "/run/avahi-daemon")))
|
||||||
|
|
||||||
(define (avahi-shepherd-service config)
|
(define (avahi-shepherd-service config)
|
||||||
"Return a list of <shepherd-service> for CONFIG."
|
"Return a list of <shepherd-service> for CONFIG."
|
||||||
|
@ -111,7 +111,7 @@ (define (avahi-shepherd-service config)
|
||||||
"--daemonize"
|
"--daemonize"
|
||||||
#$@(if debug? #~("--debug") #~())
|
#$@(if debug? #~("--debug") #~())
|
||||||
"-f" #$config)
|
"-f" #$config)
|
||||||
#:pid-file "/var/run/avahi-daemon/pid"))
|
#:pid-file "/run/avahi-daemon/pid"))
|
||||||
(stop #~(make-kill-destructor))))))
|
(stop #~(make-kill-destructor))))))
|
||||||
|
|
||||||
(define avahi-service-type
|
(define avahi-service-type
|
||||||
|
|
Loading…
Reference in a new issue