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

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

                done
        endscript
}