Package: logrotate
Version: 3.7-5
Severity: minor
Tags: patch
There are a few more typos besides the then/than error from bug #333996.
(1) "100 k is size" -> "100k in size"
(2) the "(2)" belongs inside the parenthesis, right after "chmod"
(3) they "resides" -> they "reside"
(4) "sharedscript" -> "sharedscripts"
(5) My patch also moves the paragraph for "sharedscripts" ahead of "size",
because it belongs earlier alphabetically.
Sorry I overlooked the then/than bug when reporting #101272. Must be a
blind spot! On the other hand, I note that (1)-(3) and (5) were already
reported in #101272. :-)
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Script started on Fri 21 Oct 2005 18:39:45 BST
debian:~/bugs/logrotate$ diff -u logrotate.8.dist logrotate.8
--- logrotate.8.dist 2005-05-25 10:49:16.000000000 +0100
+++ logrotate.8 2005-10-21 18:30:42.000000000 +0100
@@ -123,7 +123,7 @@
The next section defines the parameters for both
\fI/var/log/httpd/access.log\fR and \fI/var/log/httpd/error.log\fR.
-Each is rotated whenever it grows over 100k is size, and the old log
+Each is rotated whenever it grows over 100k in size, and the old log
files are mailed (uncompressed) to [EMAIL PROTECTED] after going through 5
rotations, rather then being removed. The \fBsharedscripts\fR means that
the \fBpostrotate\fR script will only be run once, not once for each
@@ -198,7 +198,7 @@
Immediately after rotation (before the \fBpostrotate\fR script is run)
the log file is created (with the same name as the log file just rotated).
\fImode\fR specifies the mode for the log file in octal (the same
-as \fBchmod\fR)(2), \fIowner\fR specifies the user name who will own the
+as \fBchmod\fR(2)), \fIowner\fR specifies the user name who will own the
log file, and \fIgroup\fR specifies the group the log file will belong
to. Any of the log file attributes may be omitted, in which case those
attributes for the new file will use the same values as the original log
@@ -298,8 +298,8 @@
.TP
\fBnoolddir\fR
-Logs are rotated in the directory they normally resides in (this
-overrides the \fBolddir\fR option).
+Logs are rotated in the directory they normally reside in (this overrides
+the \fBolddir\fR option).
.TP
\fBnosharedscripts\fR
@@ -357,6 +357,17 @@
are removed rather then rotated.
.TP
+\fBsharedscripts\fR
+Normally, \fBprerotate\fR and \fBpostrotate\fR scripts are run for each
+log which is rotated, meaning that a single script may be run multiple
+times for log file entries which match multiple files (such as the
+\fI/var/log/news/*\fR example). If \fBsharedscripts\fR is specified, the
+scripts are only run once, no matter how many logs match the wildcarded
+pattern. However, if none of the logs in the pattern require rotating, the
+scripts will not be run at all. This option overrides the
+\fBnosharedscripts\fR option.
+
+.TP
\fBsize \fIsize\fR[\fBG\fR|\fBM\fR|\fBk\fR]
Log files are rotated when they grow bigger then \fIsize\fR bytes. If
\fIsize\fR is followed by \fIM\fR, the size if assumed to be in megabytes.
@@ -365,17 +376,6 @@
\fIsize 100k\fR, \fIsize 100M\fR and \fIsize 1G\fR are all valid.
.TP
-\fBsharedscripts\fR
-Normally, \fBprerotate\fR and \fBpostrotate\fR scripts are run for each
-log which is rotated, meaning that a single script may be run multiple
-times for log file entries which match multiple files (such as the
-\fI/var/log/news/*\fR example). If \fBsharedscript\fR is specified, the scripts
-are only run once, no matter how many logs match the wildcarded pattern.
-However, if none of the logs in the pattern require rotating, the scripts
-will not be run at all. This option overrides the \fBnosharedscripts\fR
-option.
-
-.TP
\fBstart \fIcount\fR
This is the number to use as the base for rotation. For example, if
you specify 0, the logs will be created with a .0 extension as they are
debian:~/bugs/logrotate$ exit
Script done on Fri 21 Oct 2005 18:41:22 BST