X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=debianpkg%2Ffrr.logrotate;h=1dc9122ac4b5a7c271a1798241f82d204b1f729a;hb=HEAD;hp=2b4acd89c7a66bcc5b17c86a6bbdfbf9f2ebd2c3;hpb=133d8c61fff860ea396ec78c6f6458e5246283e7;p=mirror_frr.git diff --git a/debianpkg/frr.logrotate b/debianpkg/frr.logrotate deleted file mode 100644 index 2b4acd89c..000000000 --- a/debianpkg/frr.logrotate +++ /dev/null @@ -1,27 +0,0 @@ -/var/log/frr/*.log { - size 500k - sharedscripts - missingok - compress - rotate 14 - create 640 frr frrvty - - postrotate - pid=$(lsof -t -a -c /syslog/ /var/log/frr/* 2>/dev/null) - if [ -n "$pid" ] - then # using syslog - kill -HUP $pid - fi - # in case using file logging; if switching back and forth - # between file and syslog, rsyslogd might still have file - # open, as well as the daemons, so always signal the daemons. - # It's safe, a NOP if (only) syslog is being used. - for i in babeld bgpd eigrpd isisd ldpd nhrpd ospf6d ospfd \ - pimd ripd ripngd zebra ; do - if [ -e /var/run/frr/$i.pid ] ; then - pids="$pids $(cat /var/run/frr/$i.pid)" - fi - done - [ -n "$pids" ] && kill -USR1 $pids || true - endscript -}