]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1899269 from trunk:
authorEric Covener <covener@apache.org>
Mon, 28 Mar 2022 00:07:16 +0000 (00:07 +0000)
committerEric Covener <covener@apache.org>
Mon, 28 Mar 2022 00:07:16 +0000 (00:07 +0000)
add -n warnings/quirks

https://bz.apache.org/bugzilla/show_bug.cgi?id=65980

[skip ci]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1899270 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/programs/rotatelogs.xml

index ba93a41795cd7233067b0dd7808143760ba6b11f..e1e6f1ce21f8baa0b16993f1ebb19b5c08233e13 100644 (file)
@@ -117,9 +117,16 @@ processed in real time by a further tool in the chain.</dd>
 <dd>Create log file for each interval, even if empty.</dd>
 
 <dt><code>-n <var>number-of-files</var></code></dt>
-<dd>Use a circular list of filenames without timestamps.
-With -n 3, the series of log files opened would be
-"logfile", "logfile.1", "logfile.2", then overwriting "logfile".
+<dd>Use a circular list of filenames without timestamps. This option overwrites 
+log files at startup and during rotation.  With -n 3, the series of log 
+files opened would be "logfile", "logfile.1", "logfile.2", then overwriting 
+"logfile". 
+<br/>
+When this program first opens "logfile", the file will only be truncated if <code>-t</code> is also provided. Every subsequent rotation will
+always begin with truncation of the target file.  For size based rotation without <code>-t</code> and existing log files in place,
+this option may result in unintuitive behavior such as initial log entries being sent to "logfile.1", and entries in "logfile.1" not being preserved
+even if later "logfile.n" have not yet been used.
+<br/>
 Available in 2.4.5 and later.</dd>
 
 <dt><code><var>logfile</var></code></dt>