diff options
Diffstat (limited to 'network/quagga/quagga.logrotate')
-rw-r--r-- | network/quagga/quagga.logrotate | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/network/quagga/quagga.logrotate b/network/quagga/quagga.logrotate new file mode 100644 index 0000000000..9a213de3ca --- /dev/null +++ b/network/quagga/quagga.logrotate @@ -0,0 +1,17 @@ +/var/log/quagga/*.log { + daily + sharedscripts + missingok + compress + rotate 14 + create 640 quagga quagga + + postrotate + for i in zebra bgpd ripd ospfd ripngd ospf6d isisd; do + if [ -e /var/run/quagga/$i.pid ] ; then + kill -USR1 $(cat /var/run/quagga/$i.pid) + fi + + done + endscript +} |