diff options
Diffstat (limited to 'sys-cluster/ceph/files/ceph.logrotate-r1')
-rw-r--r-- | sys-cluster/ceph/files/ceph.logrotate-r1 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-cluster/ceph/files/ceph.logrotate-r1 b/sys-cluster/ceph/files/ceph.logrotate-r1 new file mode 100644 index 000000000000..df03f5e69a4b --- /dev/null +++ b/sys-cluster/ceph/files/ceph.logrotate-r1 @@ -0,0 +1,18 @@ +/var/log/ceph/*.log +{ + rotate 7 + daily + compress + sharedscripts + prerotate + for dmn in $(cd /run/ceph && ls *.asok 2>/dev/null); do + ceph --admin-daemon /run/ceph/${dmn} log flush 2>/dev/null >/dev/null + done + endscript + postrotate + for dmn in $(cd /run/ceph && ls *.asok 2>/dev/null); do + ceph --admin-daemon /run/ceph/${dmn} log reopen 2>/dev/null >/dev/null + done + endscript + missingok +} |