diff options
| author | Dariqq <dariqq@posteo.net> | 2025-10-15 11:27:03 +0000 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-11-09 22:12:02 +0100 |
| commit | 49ba3adfdff205aeddbe90ee8757e75009d9eed0 (patch) | |
| tree | 942de2d2e768c96d8e334d3251c21d2826759654 /gnu/services/mail.scm | |
| parent | 74b718d554e135e07222435a00a70a49541a6d49 (diff) | |
services: opensmtd: Add back option to log to syslog.
The option for syslog logging was removed in 6036f1f3053bc9b4f0411b5e8aeaab5bd7f4ec7b.
* gnu/services/mail.scm (opensmtpd-shepherd-service): When log-file is #f
daemonize and set the pid-file.
Change-Id: I356f4ccacc473def35708c114947788d485d058b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/mail.scm')
| -rw-r--r-- | gnu/services/mail.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm index eef46d8f63d..edcc0caa97c 100644 --- a/gnu/services/mail.scm +++ b/gnu/services/mail.scm | |||
| @@ -1744,8 +1744,11 @@ match from local for any action outbound | |||
| 1744 | (documentation "Run the OpenSMTPD daemon.") | 1744 | (documentation "Run the OpenSMTPD daemon.") |
| 1745 | (start (let ((smtpd (file-append package "/sbin/smtpd"))) | 1745 | (start (let ((smtpd (file-append package "/sbin/smtpd"))) |
| 1746 | #~(make-forkexec-constructor | 1746 | #~(make-forkexec-constructor |
| 1747 | (list #$smtpd "-d" "-f" #$config-file) | 1747 | (list #$smtpd "-f" #$config-file |
| 1748 | #:log-file #$log-file))) | 1748 | #$@(if log-file '("-d") '())) |
| 1749 | #$@(if log-file | ||
| 1750 | (list #:log-file log-file) | ||
| 1751 | (list #:pid-file "/var/run/smtpd.pid"))))) | ||
| 1749 | (stop #~(make-kill-destructor)))))) | 1752 | (stop #~(make-kill-destructor)))))) |
| 1750 | 1753 | ||
| 1751 | (define %opensmtpd-accounts | 1754 | (define %opensmtpd-accounts |
