Move stat/*.log to the end of logrotate.conf
PATCH 1/1 Move stat/*.log to the end of logrotate.conf
Logrotate ignores entries after a rule that doesn't match any files.
Signed-off-by Alexandre Oliva <[email protected]>
--- src/logrotate.conf | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-)
src/logrotate.conf +10 -9
@@ -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
Sage Weil
AppliedApplied, thanks!
Quoted 52 lines · Alexandre Oliva
Logrotate ignores entries after a rule that doesn't match any files.
Signed-off-by Alexandre Oliva <[email protected]>--- src/logrotate.conf | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-)src/logrotate.conf +10
-9@@ -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