services: Make sure Shepherd destructors match constructors.
This is a followup tob06ecc5751
,211fe3f66e
, andfd57ce267c
. * gnu/services/base.scm (guix-publish-shepherd-service): Change 'stop' method to use 'make-systemd-destructor' when 'make-systemd-constructor' is used. * gnu/services/dict.scm (dicod-shepherd-service): Change 'stop' method to use 'make-inetd-destructor' when 'make-inetd-constructor' is used. * gnu/services/messaging.scm (bitlbee-shepherd-service): Likewise.
parent
39d6c13fda
commit
2a37f174be
|
@ -1914,7 +1914,10 @@ raise a deprecation warning if the 'compression-level' field was used."
|
|||
(make-systemd-constructor
|
||||
#$command #$endpoints #$@options)
|
||||
(make-forkexec-constructor #$command #$@options)))
|
||||
(stop #~(make-kill-destructor)))))))
|
||||
(stop #~(if (and (defined? 'make-systemd-destructor)
|
||||
#$(not advertise?))
|
||||
(make-systemd-destructor)
|
||||
(make-kill-destructor))))))))
|
||||
|
||||
(define %guix-publish-accounts
|
||||
(list (user-group (name "guix-publish") (system? #t))
|
||||
|
|
|
@ -179,7 +179,10 @@ database {
|
|||
(list #$dicod "--foreground"
|
||||
(string-append "--config=" #$dicod.conf))
|
||||
#:user "dicod" #:group "dicod")))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
(stop #~(if (and (defined? 'make-inetd-destructor)
|
||||
#$(= 1 (length interfaces))) ;XXX
|
||||
(make-inetd-destructor)
|
||||
(make-kill-destructor)))))))
|
||||
|
||||
(define dicod-service-type
|
||||
(service-type
|
||||
|
|
|
@ -883,7 +883,9 @@ string, you could instantiate a prosody service like this:
|
|||
(source "/var/lib/bitlbee")
|
||||
(target source)
|
||||
(writable? #t))))))
|
||||
(stop #~(make-kill-destructor)))))))))
|
||||
(stop #~(if (defined? 'make-inetd-destructor)
|
||||
(make-inetd-destructor)
|
||||
(make-kill-destructor))))))))))
|
||||
|
||||
(define %bitlbee-accounts
|
||||
;; User group and account to run BitlBee.
|
||||
|
|
Reference in New Issue