diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2004-05-30 10:04:03 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2004-05-30 10:04:03 +0000 |
commit | 21f82f995bfaa3cea3aeb4f282a686d71c359e33 (patch) | |
tree | ffa6fc06a3ed125ed44b1ae1276c540f6577a600 /usr.sbin/syslogd/syslog.conf.5 | |
parent | 46d384e689b20d4fa11d4c6051b9fc07ed51f6a7 (diff) | |
download | FreeBSD-src-21f82f995bfaa3cea3aeb4f282a686d71c359e33.zip FreeBSD-src-21f82f995bfaa3cea3aeb4f282a686d71c359e33.tar.gz |
A log file name may now be prefixed by a '-' if it should not be
explicitly fsynced after kernel messages are logged. This option
should be syntax compatible with a similar option in Linux syslogd.
I've made some small changes to Pekka's patch, hoepfully I haven't
goofed anything.
PR: 66790
Submitted by: Pekka Savola <pekkas@netcore.fi>
Obtained from: Martin Schulze's syslogd
MFC after: 1 month
Diffstat (limited to 'usr.sbin/syslogd/syslog.conf.5')
-rw-r--r-- | usr.sbin/syslogd/syslog.conf.5 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslog.conf.5 b/usr.sbin/syslogd/syslog.conf.5 index f13f1bf..789d63f 100644 --- a/usr.sbin/syslogd/syslog.conf.5 +++ b/usr.sbin/syslogd/syslog.conf.5 @@ -318,6 +318,22 @@ There are five forms: .It A pathname (beginning with a leading slash). Selected messages are appended to the file. +.Pp +To ensure that kernel messages are written to disk promptly, +.Nm +calls +.Xr fsync 2 +after writing messages from the kernel. +Other messages are not synced explicitly. +You may prefix a pathname with the minus sign, +.Dq - , +to forego syncing the specified file after every kernel message. +Note that you might lose information if the system crashes +immediately following a write attempt. +Nevertheless, using the +.Dq - +option may improve performance, +especially if the kernel is logging many messages. .It A hostname (preceded by an at .Pq Dq @ @@ -422,6 +438,10 @@ security.* /var/log/security # Log all writes to /dev/console to a separate file. console.* /var/log/console.log + +# Log ipfw messages without syncing after every message. +!ipfw +*.* -/var/log/ipfw .Ed .Sh IMPLEMENTATION NOTES The |