diff options
| author | Alex Harpin <development@landsofshadow.co.uk> | 2015-02-08 14:34:32 +0000 |
|---|---|---|
| committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-02-08 14:34:32 +0000 |
| commit | 7363488860d3d597c83bc26c43bc0961f4429863 (patch) | |
| tree | 7c439c40794dab2363ed7b81e97625d85d852a92 /scripts | |
| parent | b9eb029a46cc7d233979dd90457e26a0de921c9f (diff) | |
| download | vyatta-wanloadbalance-7363488860d3d597c83bc26c43bc0961f4429863.tar.gz vyatta-wanloadbalance-7363488860d3d597c83bc26c43bc0961f4429863.zip | |
vyatta-wanloadbalance: remove legacy load balancing code and tidy up
Remove legacy load balancing code left over from previous versions that
is no longer used, and tidy up a few of the scripts.
Bug #441 http://bugzilla.vyos.net/show_bug.cgi?id=441
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/vyatta-wanloadbalance.init | 2 | ||||
| -rwxr-xr-x | scripts/vyatta-wanloadbalance.init.in | 30 | ||||
| -rwxr-xr-x | scripts/vyatta-wlb-status | 1 |
3 files changed, 0 insertions, 33 deletions
diff --git a/scripts/vyatta-wanloadbalance.init b/scripts/vyatta-wanloadbalance.init index eeccc32..2f61284 100755 --- a/scripts/vyatta-wanloadbalance.init +++ b/scripts/vyatta-wanloadbalance.init @@ -10,7 +10,6 @@ test -x $bb || exit 0 start () { -# /opt/vyatta/sbin/wan_lb -f /var/run/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/run/load-balance/wlb.conf -d -i $pid } @@ -30,4 +29,3 @@ case "$action" in *) echo "Usage: $progname {start|stop|restart}" exit 1 esac - diff --git a/scripts/vyatta-wanloadbalance.init.in b/scripts/vyatta-wanloadbalance.init.in deleted file mode 100755 index decb811..0000000 --- a/scripts/vyatta-wanloadbalance.init.in +++ /dev/null @@ -1,30 +0,0 @@ -#! /bin/bash - -declare progname=${0##*/} -declare action=$1; shift - -conf=$1; shift -pid=/var/run/vyatta/wlb.pid - -test -x $bb || exit 0 - -start () -{ - /opt/vyatta/sbin/wan_lb -f $conf -d -i $pid -} - -stop () -{ - if [ -f $pid ] - then - kill -s SIGTERM $( cat $pid ) 2>/dev/null - fi -} - -case "$action" in - start) start;; - stop) stop;; - restart) stop; sleep 1; start;; - *) echo "Usage: $progname {start|stop|restart}" - exit 1 -esac diff --git a/scripts/vyatta-wlb-status b/scripts/vyatta-wlb-status index 325b3b1..f86cc5b 100755 --- a/scripts/vyatta-wlb-status +++ b/scripts/vyatta-wlb-status @@ -1,5 +1,4 @@ #!/bin/sh - iptables $1 -L WANLOADBALANCE_PRE -t mangle -v |
