mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
Currently, we run the logrotate scripts as ceph/ceph but that way we
cannot rotate the scripts created by qemu (they are root/ceph and 644).
The original su line was introduced in commit 73d7bed9
because logrotate
complained that the directory was writable by a non-root group and it
needed a su line to supress that error. This way, we keep the group
settings and we can access and rotate the qemu logs as well.
Signed-off-by: Boris Ranto <branto@redhat.com>
13 lines
228 B
Plaintext
13 lines
228 B
Plaintext
/var/log/ceph/*.log {
|
|
rotate 7
|
|
daily
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
killall -q -1 ceph-mon ceph-mds ceph-osd ceph-fuse radosgw || true
|
|
endscript
|
|
missingok
|
|
notifempty
|
|
su root ceph
|
|
}
|