ceph/src/logrotate.conf
Tianshan Qu 4dbf2c44c7 logrotate: add pkill as backup in case of no killall
there is no killall in centos7 minimal

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
2017-07-27 14:30:10 +08:00

13 lines
308 B
Plaintext

/var/log/ceph/*.log {
rotate 7
daily
compress
sharedscripts
postrotate
killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw" || true
endscript
missingok
notifempty
su root ceph
}