diff options
Diffstat (limited to 'debian/frr.logrotate')
-rw-r--r-- | debian/frr.logrotate | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/frr.logrotate b/debian/frr.logrotate new file mode 100644 index 000000000..0dd68fb25 --- /dev/null +++ b/debian/frr.logrotate @@ -0,0 +1,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 +} |