aboutsummaryrefslogtreecommitdiff
path: root/network/quagga/quagga.logrotate
blob: c2ce2e9b6fdb5fc527f53e3c40cfdbfa1ae3308e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/var/log/quagga/*.log {
	su quagga quagga
	daily
	sharedscripts
	missingok
	compress
	rotate 14
	create 640 quagga quagga

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

		done
	endscript
}