summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-06-02 10:22:36 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-06-02 16:09:25 -0700
commite3d168147b3b36d4bc026170336bb4455ed6c75e (patch)
tree24f9456fee0fcf2324bb7730f2d92f7c157edf58
parent16d937141226777cf030d02e87a96b7e4c9c8edb (diff)
downloadvyatta-wanloadbalance-e3d168147b3b36d4bc026170336bb4455ed6c75e.tar.gz
vyatta-wanloadbalance-e3d168147b3b36d4bc026170336bb4455ed6c75e.zip
fix for bug 4352.
-rwxr-xr-xscripts/vyatta-wanloadbalance.init4
-rw-r--r--templates/load-balancing/wan/node.def4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-wanloadbalance.init b/scripts/vyatta-wanloadbalance.init
index 906fd18..3e0c1e8 100755
--- a/scripts/vyatta-wanloadbalance.init
+++ b/scripts/vyatta-wanloadbalance.init
@@ -10,14 +10,12 @@ test -x $bb || exit 0
start ()
{
-echo 'astart';
# /opt/vyatta/sbin/wan_lb -f /var/load-balance/wlb.conf -d -i $pid 1>/dev/null
start-stop-daemon --background --start --quiet --oknodo --exec /opt/vyatta/sbin/wan_lb -- -f /var/load-balance/wlb.conf -d -i $pid
}
stop ()
{
-echo 'stop';
if [ -f $pid ]
then
kill -s SIGTERM $( cat $pid )
@@ -32,4 +30,4 @@ case "$action" in
*) echo "Usage: $progname {start|stop|restart}"
exit 1
esac
-echo 0
+
diff --git a/templates/load-balancing/wan/node.def b/templates/load-balancing/wan/node.def
index 5d4b761..523dd73 100644
--- a/templates/load-balancing/wan/node.def
+++ b/templates/load-balancing/wan/node.def
@@ -1,4 +1,6 @@
help: Configure Wide Area Network (WAN) load-balancing
-end:expression: exec "sudo ${vyatta_sbindir}/vyatta-wanloadbalance.pl"
+end: if [ ${COMMIT_ACTION} != 'DELETE' ]; then
+ sudo ${vyatta_sbindir}/vyatta-wanloadbalance.pl;
+ fi;
delete:expression: exec "sudo /etc/init.d/vyatta-wanloadbalance stop;sudo rm -f /var/load-balance/wlb.out"