Skip to contentSkip to conversation

Move stat/*.log to the end of logrotate.conf

PATCH Applied Alexandre Oliva 2 participants 2 messages Jul 4, 2011 – Jul 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Move stat/*.log to the end of logrotate.conf

Logrotate ignores entries after a rule that doesn't match any files.

---
 src/logrotate.conf |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
src/logrotate.conf +10 -9
index 14bc02c..a4fb73f 100644
@@ -1,12 +1,3 @@
-# Separate stat/*.log into a different rule because sometimes
-# it doesn't exist, and logrotate will ignore the entire rule
-# if any part of the file list isn't found.
-/var/log/ceph/stat/*.log {
-    rotate 7
-    daily
-    compress
-}
-
 /var/log/ceph/*.log {
     rotate 7
     daily
@@ -16,3 +7,13 @@
         invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
     endscript
 }
+
+# Separate stat/*.log into a different rule because sometimes
+# it doesn't exist, and logrotate will ignore the entire rule
+# and the remainder of the file if any part of the file list
+# isn't found.
+/var/log/ceph/stat/*.log {
+    rotate 7
+    daily
+    compress
+}
Signature · 7 lines
1.7.4.4

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer
Applied
#1 lore raw

Applied, thanks!

Quoted 52 lines · Alexandre Oliva

Logrotate ignores entries after a rule that doesn't match any files.

---
 src/logrotate.conf |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
src/logrotate.conf +10 -9
index 14bc02c..a4fb73f 100644
@@ -1,12 +1,3 @@
-# Separate stat/*.log into a different rule because sometimes
-# it doesn't exist, and logrotate will ignore the entire rule
-# if any part of the file list isn't found.
-/var/log/ceph/stat/*.log {
-    rotate 7
-    daily
-    compress
-}
-
 /var/log/ceph/*.log {
     rotate 7
     daily
@@ -16,3 +7,13 @@
         invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
     endscript
 }
+
+# Separate stat/*.log into a different rule because sometimes
+# it doesn't exist, and logrotate will ignore the entire rule
+# and the remainder of the file if any part of the file list
+# isn't found.
+/var/log/ceph/stat/*.log {
+    rotate 7
+    daily
+    compress
+}
Signature · 11 lines
1.7.4.4

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html