aboutsummaryrefslogtreecommitdiffstats
path: root/config/quagga_ospfd/quagga_ospfd.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-03 11:21:29 -0400
committerjim-p <jimp@pfsense.org>2012-05-03 11:21:29 -0400
commit01eeb96c4519178caea3b97e8e141f12338f4669 (patch)
tree61a3ac51b2ccf17d48ba6f952b5729415028147d /config/quagga_ospfd/quagga_ospfd.inc
parent043cdc098b9c7228538b6be967f83e61cde60431 (diff)
downloadpfsense-packages-01eeb96c4519178caea3b97e8e141f12338f4669.tar.gz
pfsense-packages-01eeb96c4519178caea3b97e8e141f12338f4669.tar.bz2
pfsense-packages-01eeb96c4519178caea3b97e8e141f12338f4669.zip
Clear quagga pid files after killing and before starting.
Diffstat (limited to 'config/quagga_ospfd/quagga_ospfd.inc')
-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