Blame SOURCES/logrotate-3.8.6-statusfile.patch

285127
From 42c95eacd3eb37f7846967295908fc4a9db81713 Mon Sep 17 00:00:00 2001
285127
From: Kamil Dudka <kdudka@redhat.com>
285127
Date: Tue, 24 Jan 2017 18:26:32 +0100
285127
Subject: [PATCH] Resolves: #1381719 - make /var/lib/logrotate/logrotate.status
285127
 the default state file
285127
285127
---
285127
 config.h                | 2 +-
285127
 examples/logrotate.cron | 2 +-
285127
 logrotate.8             | 5 +++--
285127
 3 files changed, 5 insertions(+), 4 deletions(-)
285127
285127
diff --git a/config.h b/config.h
285127
index d715c5a..31f21aa 100644
285127
--- a/config.h
285127
+++ b/config.h
285127
@@ -43,5 +43,5 @@
285127
 #endif
285127
 
285127
 #ifndef STATEFILE
285127
-#define STATEFILE "/var/lib/logrotate.status"
285127
+#define STATEFILE "/var/lib/logrotate/logrotate.status"
285127
 #endif
285127
diff --git a/examples/logrotate.cron b/examples/logrotate.cron
285127
index c6d50d4..967932e 100644
285127
--- a/examples/logrotate.cron
285127
+++ b/examples/logrotate.cron
285127
@@ -1,6 +1,6 @@
285127
 #!/bin/sh
285127
 
285127
-/usr/sbin/logrotate /etc/logrotate.conf
285127
+/usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
285127
 EXITVALUE=$?
285127
 if [ $EXITVALUE != 0 ]; then
285127
     /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
285127
diff --git a/logrotate.8 b/logrotate.8
285127
index 2cd2370..756e655 100644
285127
--- a/logrotate.8
285127
+++ b/logrotate.8
285127
@@ -59,7 +59,8 @@ and mail it to the recipient. The default mail command is \fB/bin/mail
285127
 \fB\-s\fR, \fB\-\-state <statefile>\fR
285127
 Tells \fBlogrotate\fR to use an alternate state file.  This is useful
285127
 if logrotate is being run as a different user for various sets of
285127
-log files.  The default state file is \fI/var/lib/logrotate.status\fR.
285127
+log files.  The default state file is
285127
+\fI/var/lib/logrotate/logrotate.status\fR.
285127
 
285127
 .TP
285127
 \fB\-\-usage\fR
285127
@@ -538,7 +539,7 @@ Log files are rotated if the current year is not the same as the last rotation.
285127
 .SH FILES
285127
 .PD 0
285127
 .TP 27
285127
-\fI/var/lib/logrotate.status\fR
285127
+\fI/var/lib/logrotate/logrotate.status\fR
285127
 Default state file.
285127
 .TP 27
285127
 \fI/etc/logrotate.conf\fR
285127
-- 
285127
2.7.4
285127