From 2a37f174becbafd70591f6eb1d98493c5c1df0e2 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 2 May 2022 17:27:13 +0200 Subject: services: Make sure Shepherd destructors match constructors. This is a followup to b06ecc57515d4e3c8b2228e8142654e9a26ba6e1, 211fe3f66e6dfdaa64974931c458ab1d92afc182, and fd57ce267c4083fe98242caa31075d2bd62903bf. * 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. --- gnu/services/messaging.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/services/messaging.scm') diff --git a/gnu/services/messaging.scm b/gnu/services/messaging.scm index f9e7e2aa09..26d47f47de 100644 --- a/gnu/services/messaging.scm +++ b/gnu/services/messaging.scm @@ -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. -- cgit 1.4.1