mirror of
https://github.com/ceph/ceph
synced 2025-02-25 12:03:00 +00:00
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>
19 lines
418 B
Plaintext
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
|
|
}
|