From: Sage Weil Date: Mon, 1 Nov 2010 17:04:15 +0000 (-0700) Subject: logrotate: separate rule for stat/*.log X-Git-Tag: v0.23~54^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d85a7b9f0c5850e679510c526920e3ffa5f5bbc;p=ceph.git logrotate: separate rule for stat/*.log 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 --- diff --git a/src/logrotate.conf b/src/logrotate.conf index 308de5019bf8..14bc02ce925e 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -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