aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/quagga_ospfd/quagga_ospfd.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc
index 755f6c98..075820e4 100644
--- a/config/quagga_ospfd/quagga_ospfd.inc
+++ b/config/quagga_ospfd/quagga_ospfd.inc
@@ -193,10 +193,14 @@ function quagga_ospfd_install_conf() {
$rc_file_stop = <<<EOF
kill -9 `cat /var/run/quagga/zebra.pid`
kill -9 `cat /var/run/quagga/ospfd.pid`
+rm -f /var/run/quagga/zebra.pid
+rm -f /var/run/quagga/ospfd.pid
EOF;
$rc_file_start = <<<EOF
/bin/mkdir -p /var/run/quagga
/bin/mkdir -p /var/log/quagga
+rm -f /var/run/quagga/zebra.pid
+rm -f /var/run/quagga/ospfd.pid
/usr/sbin/chown -R quagga:quagga /usr/local/etc/quagga/
/usr/sbin/chown -R quagga:quagga /var/run/quagga
/usr/sbin/chown -R quagga:quagga /var/log/quagga