mirror of
https://github.com/ceph/ceph
synced 2025-01-31 07:22:56 +00:00
0b0f65a402
When ceph is not running, it has no logs. Thus logrotate has nothing to rotate. The missingok directive handles this situation. Signed-off-by: Laszlo Boszormenyi <gcs@debian.hu>
11 lines
198 B
Plaintext
11 lines
198 B
Plaintext
/var/log/ceph/*.log {
|
|
rotate 7
|
|
daily
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
invoke-rc.d ceph reload >/dev/null || service ceph reload >/dev/null
|
|
endscript
|
|
missingok
|
|
}
|