aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJean-Baptiste Note <jean-baptiste.note@m4x.org>2024-04-30 15:36:21 +0000
committerLudovic Courtès <ludo@gnu.org>2024-12-23 20:45:31 +0100
commitb732d702f9732493a21bba7886068fd385e12fc5 (patch)
treebd0ffab44a6add9ba75e3c83fcf038b2b2e0815e /gnu
parentecb8ca6266484d4f896f155b38d3c8ea122450da (diff)
downloadguix-b732d702f9732493a21bba7886068fd385e12fc5.tar.gz
guix-b732d702f9732493a21bba7886068fd385e12fc5.zip
services: syslog: Add extra-options argument to syslog service.
* gnu/services/base.scm (<syslog-configuration>): Add extra-options field. (syslog-shepherd-service): Use it when running the service. * doc/guix.texi: Document it. Change-Id: I540d070b9a9678b45ec9fa28d6fdc761f9b3fd9a Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/base.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index e31d93e6ee..6389148231 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1640,7 +1640,9 @@ mail.* -/var/log/maillog
(syslogd syslog-configuration-syslogd
(default (file-append inetutils "/libexec/syslogd")))
(config-file syslog-configuration-config-file
- (default %default-syslog.conf)))
+ (default %default-syslog.conf))
+ (extra-options syslog-configuration-extra-options
+ (default '())))
;;; Note: a static file name is used for syslog.conf so that the reload action
;;; work as intended.
@@ -1676,7 +1678,8 @@ reload its settings file.")))
;; action work as intended.
(start #~(make-forkexec-constructor
(list #$(syslog-configuration-syslogd config)
- #$(string-append "--rcfile=" syslog.conf))
+ #$(string-append "--rcfile=" syslog.conf)
+ #$@(syslog-configuration-extra-options config))
#:file-creation-mask #o137
#:pid-file "/var/run/syslog.pid"))
(stop #~(make-kill-destructor))))