summaryrefslogtreecommitdiff
path: root/network/quagga/quagga.logrotate
diff options
context:
space:
mode:
authorMarin Glibic <zhilla2@gmail.com>2010-12-29 19:19:03 -0200
committerRobby Workman <rworkman@slackbuilds.org>2010-12-31 18:59:53 -0600
commita5d362da5127036f0608e79a36b1411fcae5b9ac (patch)
treeb08a78a90966306f5a466d8ec0218b1663db2156 /network/quagga/quagga.logrotate
parentae22224689c79cddd3702167b9e98784d7104704 (diff)
downloadslackbuilds-a5d362da5127036f0608e79a36b1411fcae5b9ac.tar.gz
network/quagga: Added (IP routing daemons)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/quagga/quagga.logrotate')
-rw-r--r--network/quagga/quagga.logrotate17
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
+}