From b732d702f9732493a21bba7886068fd385e12fc5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Note Date: Tue, 30 Apr 2024 15:36:21 +0000 Subject: services: syslog: Add extra-options argument to syslog service. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/services/base.scm (): 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 --- gnu/services/base.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu') 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)))) -- cgit v1.2.3