Blame SOURCES/0002-logrotate-3.18.0-copytruncate-doc.patch

d7c118
From 4810afca1223099c1546da8d73d653c0d1eff96e Mon Sep 17 00:00:00 2001
d7c118
From: Kamil Dudka <kdudka@redhat.com>
d7c118
Date: Tue, 27 Apr 2021 18:36:30 +0200
d7c118
Subject: [PATCH 1/2] logrotate.8: unify documentation of
d7c118
 copy/copytruncate/renamecopy
d7c118
d7c118
Bug: https://bugzilla.redhat.com/1934629
d7c118
d7c118
Closes: https://github.com/logrotate/logrotate/pull/386
d7c118
d7c118
Upstream-commit: 6ac9fe5759678b4c2b312eea490ebbae25092213
d7c118
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
d7c118
---
d7c118
 logrotate.8.in | 18 +++++++++++++-----
d7c118
 1 file changed, 13 insertions(+), 5 deletions(-)
d7c118
d7c118
diff --git a/logrotate.8.in b/logrotate.8.in
d7c118
index f27c279..8064d68 100644
d7c118
--- a/logrotate.8.in
d7c118
+++ b/logrotate.8.in
d7c118
@@ -411,7 +411,8 @@ Make a copy of the log file, but don't change the original at all.
d7c118
 This option can be used, for instance, to make a snapshot of the current
d7c118
 log file, or when some other utility needs to truncate or parse the file.
d7c118
 When this option is used, the \fBcreate\fR option will have no effect,
d7c118
-as the old log file stays in place.
d7c118
+as the old log file stays in place.  The \fBcopy\fR option allows storing
d7c118
+rotated log files on the different devices using \fBolddir\fR directive.
d7c118
 
d7c118
 .TP
d7c118
 \fBnocopy\fR
d7c118
@@ -427,7 +428,9 @@ and thus might continue writing (appending) to the previous log file forever.
d7c118
 Note that there is a very small time slice between copying the file and
d7c118
 truncating it, so some logging data might be lost.
d7c118
 When this option is used, the \fBcreate\fR option will have no effect,
d7c118
-as the old log file stays in place.
d7c118
+as the old log file stays in place.  The \fBcopytruncate\fR option allows
d7c118
+storing rotated log files on the different devices using \fBolddir\fR
d7c118
+directive.
d7c118
 
d7c118
 .TP
d7c118
 \fBnocopytruncate\fR
d7c118
@@ -438,9 +441,14 @@ Do not truncate the original log file in place after creating a copy
d7c118
 \fBrenamecopy\fR
d7c118
 Log file is renamed to temporary filename in the same directory by adding
d7c118
 ".tmp" extension to it.  After that, \fBpostrotate\fR script is run
d7c118
-and log file is copied from temporary filename to final filename.  This allows
d7c118
-storing rotated log files on the different devices using \fBolddir\fR
d7c118
-directive. In the end, temporary filename is removed.
d7c118
+and log file is copied from temporary filename to final filename.  In the end,
d7c118
+temporary filename is removed.  The \fBrenamecopy\fR option allows storing
d7c118
+rotated log files on the different devices using \fBolddir\fR directive.
d7c118
+
d7c118
+.TP
d7c118
+\fBnorenamecopy\fR
d7c118
+Do not rename and copy the original log file
d7c118
+(this overrides the \fBrenamecopy\fR option).
d7c118
 
d7c118
 .TP
d7c118
 \fBshred\fR
d7c118
-- 
d7c118
2.30.2
d7c118