mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: syslogd: Do not fsync at each line.
Fixes <https://issues.guix.gnu.org/55707>. Previously Inetutils' syslogd would call 'fsync' after each line written to a file. This would significantly increase boot times on machines with slow-ish spinning HDDs, where each 'fsync' call would take between 0.1s and 0.4s (and we'd do two of them for each line, one for /var/log/messages and one for /var/log/debug). * gnu/services/base.scm (%default-syslog.conf): Add a '-' before each file name, except /var/log/secure. Change what goes to /var/log/debug.
This commit is contained in:
parent
635d49f97e
commit
264ca9452f
1 changed files with 7 additions and 6 deletions
|
@ -1397,23 +1397,24 @@ (define %default-syslog.conf
|
|||
# level notice or higher and anything of level err or
|
||||
# higher to the console.
|
||||
# Don't log private authentication messages!
|
||||
*.alert;auth.notice;authpriv.none /dev/console
|
||||
*.alert;auth.notice;authpriv.none -/dev/console
|
||||
|
||||
# Log anything (except mail) of level info or higher.
|
||||
# Don't log private authentication messages!
|
||||
*.info;mail.none;authpriv.none /var/log/messages
|
||||
*.info;mail.none;authpriv.none -/var/log/messages
|
||||
|
||||
# Like /var/log/messages, but also including \"debug\"-level logs.
|
||||
*.debug;mail.none;authpriv.none /var/log/debug
|
||||
# Log \"debug\"-level entries and nothing else.
|
||||
*.=debug -/var/log/debug
|
||||
|
||||
# Same, in a different place.
|
||||
*.info;mail.none;authpriv.none /dev/tty12
|
||||
*.info;mail.none;authpriv.none -/dev/tty12
|
||||
|
||||
# The authpriv file has restricted access.
|
||||
# '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
|
||||
mail.* -/var/log/maillog
|
||||
"))
|
||||
|
||||
(define* (syslog-service #:optional (config (syslog-configuration)))
|
||||
|
|
Loading…
Reference in a new issue