slackbuilds_ponce/network/quagga/quagga.logrotate
Robby Workman 7d275467da network/quagga: Fixed logrotate script (added "su" directive)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2012-09-12 18:03:42 -05:00

18 lines
307 B
Text

/var/log/quagga/*.log {
su quagga quagga
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
}