summaryrefslogtreecommitdiff
blob: df03f5e69a4bf6bbdce2435c656bf55a4bb0d1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}