summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-01 17:38:41 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-02 14:20:31 -0700
commit7807977e9701dc6acb00ce7bc17d539eb4eed8c3 (patch)
tree8cab6c0ca880b1aaa259260ffb4fdd780c7aafff /scripts
parent2d9121d9e81ff56e6d511d8df25e433cc74ee087 (diff)
downloadvyatta-cfg-quagga-7807977e9701dc6acb00ce7bc17d539eb4eed8c3.tar.gz
vyatta-cfg-quagga-7807977e9701dc6acb00ce7bc17d539eb4eed8c3.zip
Don't stop daemon if OSPF/RIP still has parameters
Need daemon to hold around parameters for start.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/quagga-manager6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/quagga-manager b/scripts/quagga-manager
index fc1326f0..40a1ebfe 100755
--- a/scripts/quagga-manager
+++ b/scripts/quagga-manager
@@ -129,7 +129,11 @@ update() {
# Cleanup any daemons no longer needed
for p in ${deleted[*]}
- do stop $p
+ do
+ # Need daemon to hold state of interface
+ if [ -z "$(find $vyatta_cfg/interfaces -type d -name $p)" ]
+ then stop $p
+ fi
done
start watchquagga