]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: separate rule for stat/*.log
authorSage Weil <sage@newdream.net>
Mon, 1 Nov 2010 17:04:15 +0000 (10:04 -0700)
committerSage Weil <sage@newdream.net>
Mon, 1 Nov 2010 17:04:15 +0000 (10:04 -0700)
Logrotate seems to ignore the entire rule if any part of the file list
is not found.  This happens on nodes with only monitors.

Signed-off-by: Sage Weil <sage@newdream.net>
src/logrotate.conf

index 308de5019bf86506f36f8f3617b8753866c4557d..14bc02ce925e6a6035041b75e7118e058fa95516 100644 (file)
@@ -1,4 +1,13 @@
-/var/log/ceph/*.log /var/log/ceph/stat/*.log {
+# 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
     compress