guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 32fca2d36660b65686038f87845a7c173336041f
Author: Sören Tempel <[email protected]>
AuthorDate: Sun Nov 23 20:03:48 2025 +0100

    services: radicale: add shepherd configuration action
    
    * gnu/services/mail.scm (radicale-shepherd-service): add configuration
    action.
    
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/services/mail.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index edcc0caa97..5d4bc4684d 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -2237,6 +2237,9 @@ authentication plugin that extracts the username from the 
certificate.")
          (shell (file-append shadow "/sbin/nologin")))))
 
 (define (radicale-shepherd-service cfg)
+  (define config-file
+    (serialize-radicale-configuration cfg))
+
   (list (shepherd-service
          (provision '(radicale))
          (documentation "Run the radicale daemon.")
@@ -2244,10 +2247,13 @@ authentication plugin that extracts the username from 
the certificate.")
          (start #~(make-forkexec-constructor
                    (list #$(file-append (radicale-configuration-package cfg)
                                         "/bin/radicale")
-                         "-C" #$(serialize-radicale-configuration cfg))
+                         "-C" #$config-file)
                    #:user "radicale"
                    #:group "radicale"))
-         (stop #~(make-kill-destructor)))))
+         (stop #~(make-kill-destructor))
+         (actions
+           (list
+             (shepherd-configuration-action config-file))))))
 
 (define radicale-activation
   (match-lambda

Reply via email to