summaryrefslogtreecommitdiffstats
path: root/debian/quagga.logrotate
blob: 77e015d7254205bfa21b6776cbf9301f260607f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/var/log/quagga/*.log {
        size 500k
        sharedscripts
        missingok
        compress
        rotate 14
        create 640 quagga quaggavty

        postrotate
		for i in zebra bgpd ripd ospfd ripngd ospf6d isisd pimd; do
                        if [ -e /var/run/quagga/$i.pid ] ; then
				kill -USR1 `cat /var/run/quagga/$i.pid`
                        fi

                done
        endscript
}