]> git.puffer.fish Git - mirror/frr.git/commitdiff
- From Andrew Schorr, fixup logrotate to use correct path to killall
authorpaul <paul>
Tue, 19 Oct 2004 14:41:56 +0000 (14:41 +0000)
committerpaul <paul>
Tue, 19 Oct 2004 14:41:56 +0000 (14:41 +0000)
  and use the pid file.

redhat/quagga.logrotate

index a6494381ed9035fc7f94f6c1c9c81cbf63708b94..1b453d16d20e8f1c00f0c53cffc37c976300bd7b 100644 (file)
@@ -2,7 +2,7 @@
     notifempty
     missingok
     postrotate
-       /usr/sbin/killall -USR1 zebra
+       /bin/kill -USR1 `cat /var/run/quagga/zebra.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
 
@@ -10,7 +10,7 @@
     notifempty
     missingok
     postrotate
-       /usr/sbin/killall -USR1 bgpd
+       /bin/kill -USR1 `cat /var/run/quagga/bgpd.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
 
@@ -18,7 +18,7 @@
     notifempty
     missingok
     postrotate
-       /usr/sbin/killall -USR1 ospfd
+       /bin/kill -USR1 `cat /var/run/quagga/ospfd.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
 
@@ -26,7 +26,7 @@
     notifempty
     missingok
     postrotate
-       /usr/sbin/killall -USR1 ospf6d
+       /bin/kill -USR1 `cat /var/run/quagga/ospf6d.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
 
@@ -34,7 +34,7 @@
     notifempty
     missingok
     postrotate
-       /usr/sbin/killall -USR1 ripd
+       /bin/kill -USR1 `cat /var/run/quagga/ripd.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
 
@@ -42,6 +42,6 @@
     notifempty
     missingok
     postrotate
-       /usr/sbin/killall -USR1 ripngd
+       /bin/kill -USR1 `cat /var/run/quagga/ripngd.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }