"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "logrotate.8.in" between
logrotate-3.18.0.tar.xz and logrotate-3.18.1.tar.xz

About: logrotate rotates, compresses, and mails system logs.

logrotate.8.in  (logrotate-3.18.0.tar.xz):logrotate.8.in  (logrotate-3.18.1.tar.xz)
skipping to change at line 156 skipping to change at line 156
postrotate postrotate
/usr/bin/killall \-HUP httpd /usr/bin/killall \-HUP httpd
endscript endscript
} }
/var/log/news/* { /var/log/news/* {
monthly monthly
rotate 2 rotate 2
olddir /var/log/news/old olddir /var/log/news/old
missingok missingok
sharedscripts
postrotate postrotate
kill \-HUP $(cat /var/run/inn.pid) kill \-HUP $(cat /var/run/inn.pid)
endscript endscript
nocompress nocompress
} }
~/log/*.log {} ~/log/*.log {}
.fi .fi
skipping to change at line 194 skipping to change at line 195
files are mailed (uncompressed) to recipient@\:example.org after going through 5 files are mailed (uncompressed) to recipient@\:example.org after going through 5
rotations, rather than being removed. The \fBsharedscripts\fR means that rotations, rather than being removed. The \fBsharedscripts\fR means that
the \fBpostrotate\fR script will only be run once (after the old logs have the \fBpostrotate\fR script will only be run once (after the old logs have
been compressed), not once for each log which is rotated. been compressed), not once for each log which is rotated.
Note that log file names may be enclosed in Note that log file names may be enclosed in
quotes (and that quotes are required if the name contains spaces). quotes (and that quotes are required if the name contains spaces).
Normal shell quoting rules apply, with \fB'\fR, \fB"\fR, and \fB\e\fR Normal shell quoting rules apply, with \fB'\fR, \fB"\fR, and \fB\e\fR
characters supported. characters supported.
The next section defines the parameters for all of the files in The next section defines the parameters for all of the files in
\fI/var/log/news\fR. Each file is rotated on a monthly basis. This is \fI/var/log/news\fR. Each file is rotated on a monthly basis.
considered a single rotation directive and if errors occur for more than
one file, the log files are not compressed.
The last section uses tilde expansion to rotate log files in the home The last section uses tilde expansion to rotate log files in the home
directory of the current user. This is only available, if your glob directory of the current user. This is only available, if your glob
library supports tilde expansion. GNU glob does support this. library supports tilde expansion. GNU glob does support this.
Please use wildcards with caution. If you specify *, \fBlogrotate\fR will Please use wildcards with caution. If you specify *, \fBlogrotate\fR will
rotate all files, including previously rotated ones. A way around this rotate all files, including previously rotated ones. A way around this
is to use the \fBolddir\fR directive or a more exact wildcard (such as *.log). is to use the \fBolddir\fR directive or a more exact wildcard (such as *.log).
Here is more information on the directives which may be included in Here is more information on the directives which may be included in
skipping to change at line 413 skipping to change at line 412
.TP .TP
\fBnocreateolddir\fR \fBnocreateolddir\fR
\fBolddir\fR directory is not created by \fBlogrotate\fR when it does not exist. \fBolddir\fR directory is not created by \fBlogrotate\fR when it does not exist.
.TP .TP
\fBcopy\fR \fBcopy\fR
Make a copy of the log file, but don't change the original at all. Make a copy of the log file, but don't change the original at all.
This option can be used, for instance, to make a snapshot of the current This option can be used, for instance, to make a snapshot of the current
log file, or when some other utility needs to truncate or parse the file. log file, or when some other utility needs to truncate or parse the file.
When this option is used, the \fBcreate\fR option will have no effect, When this option is used, the \fBcreate\fR option will have no effect,
as the old log file stays in place. as the old log file stays in place. The \fBcopy\fR option allows storing
rotated log files on the different devices using \fBolddir\fR directive.
.TP .TP
\fBnocopy\fR \fBnocopy\fR
Do not copy the original log file and leave it in place. Do not copy the original log file and leave it in place.
(this overrides the \fBcopy\fR option). (this overrides the \fBcopy\fR option).
.TP .TP
\fBcopytruncate\fR \fBcopytruncate\fR
Truncate the original log file to zero size in place after creating a copy, Truncate the original log file to zero size in place after creating a copy,
instead of moving the old log file and optionally creating a new one. instead of moving the old log file and optionally creating a new one.
It can be used when some program cannot be told to close its logfile It can be used when some program cannot be told to close its logfile
and thus might continue writing (appending) to the previous log file forever. and thus might continue writing (appending) to the previous log file forever.
Note that there is a very small time slice between copying the file and Note that there is a very small time slice between copying the file and
truncating it, so some logging data might be lost. truncating it, so some logging data might be lost.
When this option is used, the \fBcreate\fR option will have no effect, When this option is used, the \fBcreate\fR option will have no effect,
as the old log file stays in place. as the old log file stays in place. The \fBcopytruncate\fR option allows
storing rotated log files on the different devices using \fBolddir\fR
directive. The \fBcopytruncate\fR option implies \fBnorenamecopy\fR.
.TP .TP
\fBnocopytruncate\fR \fBnocopytruncate\fR
Do not truncate the original log file in place after creating a copy Do not truncate the original log file in place after creating a copy
(this overrides the \fBcopytruncate\fR option). (this overrides the \fBcopytruncate\fR option).
.TP .TP
\fBrenamecopy\fR \fBrenamecopy\fR
Log file is renamed to temporary filename in the same directory by adding Log file is renamed to temporary filename in the same directory by adding
".tmp" extension to it. After that, \fBpostrotate\fR script is run ".tmp" extension to it. After that, \fBpostrotate\fR script is run
and log file is copied from temporary filename to final filename. This allows and log file is copied from temporary filename to final filename. In the end,
storing rotated log files on the different devices using \fBolddir\fR temporary filename is removed. The \fBrenamecopy\fR option allows storing
directive. In the end, temporary filename is removed. rotated log files on the different devices using \fBolddir\fR directive.
The \fBrenamecopy\fR option implies \fBnocopytruncate\fR.
.TP
\fBnorenamecopy\fR
Do not rename and copy the original log file
(this overrides the \fBrenamecopy\fR option).
.TP .TP
\fBshred\fR \fBshred\fR
Delete log files using \fBshred\fR \-u instead of unlink(). This should Delete log files using \fBshred\fR \-u instead of unlink(). This should
ensure that logs are not readable after their scheduled deletion; this is ensure that logs are not readable after their scheduled deletion; this is
off by default. See also \fBnoshred\fR. off by default. See also \fBnoshred\fR.
.TP .TP
\fBnoshred\fR \fBnoshred\fR
Do not use \fBshred\fR when deleting old log files. See also \fBshred\fR. Do not use \fBshred\fR when deleting old log files. See also \fBshred\fR.
 End of changes. 5 change blocks. 
8 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)