diff options
author | W. Kosior <koszko@koszko.org> | 2025-03-04 17:29:05 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2025-05-26 14:07:21 +0200 |
commit | 4998676e5ecfb144127a67bfb509c1c34fad1dfe (patch) | |
tree | 5fcf6071f8b7ed5236ed169e664318610d7fe638 | |
parent | f36d8de5e7a9ef5cc759fea8dacc640279f21da4 (diff) | |
download | guix-4998676e5ecfb144127a67bfb509c1c34fad1dfe.tar.gz guix-4998676e5ecfb144127a67bfb509c1c34fad1dfe.zip |
services: exim: Allow configuring a periodic queue runner.
The runner now by default runs every 5 minutes. Previously it didn't run at
all which pretty much crippled Exim's functionality.
* gnu/services/mail.scm (<exim-configuration>)[queue-period]: New field.
(exim-shepherd-service): Pass period (unless disabled) with Exim's `-q'
option and remove the verbosity flag.
Change-Id: Ia8f25d93543b761e1a058c30f2f6ddf11943aa57
-rw-r--r-- | gnu/services/mail.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm index 20ae20302d..5e0d5621a9 100644 --- a/gnu/services/mail.scm +++ b/gnu/services/mail.scm @@ -1865,7 +1865,9 @@ database---computed from the given alias list."))) (setuid-user exim-configuration-setuid-user (default #f)) (setgid-group exim-configuration-setgid-group - (default #f))) + (default #f)) + (queue-period exim-configuration-queue-period ;string + (default "5m"))) (define %exim-accounts (list (user-group @@ -1881,13 +1883,16 @@ database---computed from the given alias list."))) (define exim-shepherd-service (match-lambda - (($ <exim-configuration> package config-file) + (($ <exim-configuration> package config-file _ _ queue-period) (list (shepherd-service (provision '(exim mta)) (documentation "Run the exim daemon.") (requirement '(networking)) (start #~(make-forkexec-constructor - '(#$(file-append package "/bin/exim") "-bd" "-v"))) + '(#$(file-append package "/bin/exim") "-bd" + #$@(or (and queue-period + (list (format #f "-q~a" queue-period))) + '())))) (stop #~(make-kill-destructor))))))) (define exim-activation |