ceph/src/logrotate.conf
Sage Weil 3d85a7b9f0 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 <sage@newdream.net>
2010-11-01 10:04:15 -07:00

19 lines
418 B
Plaintext

# 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
sharedscripts
postrotate
invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
endscript
}