mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
services: radicale: add shepherd configuration action
* gnu/services/mail.scm (radicale-shepherd-service): add configuration action. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
9b3b541660
commit
32fca2d366
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue