summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog/newsyslog.8
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-09-13 18:50:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-09-13 18:50:10 +0000
commit154d3c88f59c0493d48f24ed65e19d1c799e98eb (patch)
tree46ec84aa79aba72d7a83ac5081b1c5cfe23dd389 /usr.bin/newsyslog/newsyslog.8
parent803f977c6adddf1a87eb6ec3bc3902aff175a071 (diff)
Don't rotate log files < 512 bytes unless in binary mode. This
prevents newsyslog from rotating a file that only contains the messages that the log file was turned over. deraadt@ OK
Diffstat (limited to 'usr.bin/newsyslog/newsyslog.8')
-rw-r--r--usr.bin/newsyslog/newsyslog.813
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.8 b/usr.bin/newsyslog/newsyslog.8
index d105b3bfde2..eaa3ed33407 100644
--- a/usr.bin/newsyslog/newsyslog.8
+++ b/usr.bin/newsyslog/newsyslog.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: newsyslog.8,v 1.23 2002/09/13 01:12:55 millert Exp $
+.\" $OpenBSD: newsyslog.8,v 1.24 2002/09/13 18:50:09 millert Exp $
.\"
.\" Copyright (c) 1997, Jason Downs. All rights reserved.
.\"
@@ -157,13 +157,20 @@ Octal mode of created log files and archives.
.It number of archives
Specify the number of archives to be kept besides the log file itself.
.It size of archives
-When the size of the log file reaches this point, the log file becomes trimmed
-as described above.
+When the size of the log file (in kilobytes) reaches this point, the log
+file is trimmed as described above.
If this field is replaced by a
.Ql * ,
then the size of
the log file is not taken into account when determining when to trim the
log file.
+By default, files smaller than 512 bytes are not rotated unless the
+.Sq B
+(binary) flag is set.
+This prevents
+.Nm
+from rotating files consisting solely of a message indicating
+that the log file has been turned over.
.It archive interval
Specify the time separation between the trimming of the log file.
If this field is replaced by a