[atop/el6] Fix logrotate.

Jon Ciesla limb at fedoraproject.org
Thu Jan 16 14:46:49 UTC 2014


commit bed3d1fb7abeed25d653e175c3f55965fca30449
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Thu Jan 16 08:45:06 2014 -0600

    Fix logrotate.

 atop.logrotate |   14 +++++++++-----
 atop.spec      |    5 ++++-
 2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/atop.logrotate b/atop.logrotate
index 6253c74..77da366 100644
--- a/atop.logrotate
+++ b/atop.logrotate
@@ -1,7 +1,11 @@
-/var/log/atop/atop.log {
+/var/log/atop/atop_201[0-9][0-9][0-9][0-9][0-9] {
     missingok
-    weekly
-    rotate 4 
-    notifempty
-    create 0600 root root
+    daily
+    nodateext
+    rotate 1
+    ifempty
+    nocreate
+    postrotate
+      /usr/bin/find /var/log/atop/ -maxdepth 1 -mount -name atop_201\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]\* -mtime +40 -exec /bin/rm {} \;
+    endscript
 }
diff --git a/atop.spec b/atop.spec
index dc8a073..86e0979 100644
--- a/atop.spec
+++ b/atop.spec
@@ -1,6 +1,6 @@
 Name:           atop
 Version:        1.27
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        An advanced interactive monitor to view the load on system and process level
 
 Group:          Applications/System
@@ -127,6 +127,9 @@ fi
 
 %changelog
 * Tue May 28 2013 Jon Ciesla <limburgher at gmail.com> - 1.27-1
+- Corrected logrotate, BZ 1024759.
+
+* Tue May 28 2013 Jon Ciesla <limburgher at gmail.com> - 1.27-1
 - 1.27.
 
 * Mon May 14 2012 Jon Ciesla <limburgher at gmail.com> - 1.26-3


More information about the scm-commits mailing list