Archived
1
0
Fork 0

services/syslog: Strip leading white space indent in syslog.conf.

This is a cosmetic change.

* gnu/services/base.scm (%default-syslog.conf): Add a comment referencing the
documentation.  Strip the extraneous leading trailing white space indent.
This commit is contained in:
Maxim Cournoyer 2023-04-12 20:44:59 -04:00
parent 2c67e98b37
commit 9f890e39e4
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1497,31 +1497,34 @@ given @var{config}---an @code{<nscd-configuration>} object. @xref{Name
Service Switch}, for an example." Service Switch}, for an example."
(service nscd-service-type config)) (service nscd-service-type config))
;; Snippet adapted from the GNU inetutils manual. ;;; Snippet adapted from the GNU inetutils manual.
(define %default-syslog.conf (define %default-syslog.conf
(plain-file "syslog.conf" " (plain-file "syslog.conf" "\
# Log all error messages, authentication messages of # See info '(inetutils) syslogd invocation' for the documentation
# level notice or higher and anything of level err or # of the syslogd configuration syntax.
# higher to the console.
# Don't log private authentication messages!
*.alert;auth.notice;authpriv.none -/dev/console
# Log anything (except mail) of level info or higher. # Log all error messages, authentication messages of
# Don't log private authentication messages! # level notice or higher and anything of level err or
*.info;mail.none;authpriv.none -/var/log/messages # higher to the console.
# Don't log private authentication messages!
*.alert;auth.notice;authpriv.none -/dev/console
# Log \"debug\"-level entries and nothing else. # Log anything (except mail) of level info or higher.
*.=debug -/var/log/debug # Don't log private authentication messages!
*.info;mail.none;authpriv.none -/var/log/messages
# Same, in a different place. # Log \"debug\"-level entries and nothing else.
*.info;mail.none;authpriv.none -/dev/tty12 *.=debug -/var/log/debug
# The authpriv file has restricted access. # Same, in a different place.
# 'fsync' the file after each line (hence the lack of a leading dash). *.info;mail.none;authpriv.none -/dev/tty12
authpriv.* /var/log/secure
# Log all the mail messages in one place. # The authpriv file has restricted access.
mail.* -/var/log/maillog # 'fsync' the file after each line (hence the lack of a leading dash).
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
")) "))
(define-record-type* <syslog-configuration> (define-record-type* <syslog-configuration>