diff options
-rw-r--r-- | doc/guix.texi | 3 | ||||
-rw-r--r-- | gnu/services/base.scm | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index f7b75698870..31deb5b0030 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19874,6 +19874,9 @@ The syslog configuration file to use. @xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax. +@item @code{extra-options} (default: @code{'()}) +List of extra command-line options for @command{syslog}. + @end table @end deftp diff --git a/gnu/services/base.scm b/gnu/services/base.scm index e31d93e6eed..63891482317 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)))) |