summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-02-12 11:35:37 -0800
committerMichael Larson <slioch@eng-140.vyatta.com>2008-02-12 11:35:37 -0800
commit9de3018ba050f86f573ae498c382a07841a26b26 (patch)
tree7e145736ba4c87012ac1974fa9e4e05d68ab719a /etc
parentaaaa54644cbf913f64cbce09c7610ec332f2e613 (diff)
downloadvyatta-wanloadbalance-9de3018ba050f86f573ae498c382a07841a26b26.tar.gz
vyatta-wanloadbalance-9de3018ba050f86f573ae498c382a07841a26b26.zip
fixed init script for no start argument provided for configuration file. def is /var/load-balance/wlb.con
Diffstat (limited to 'etc')
-rw-r--r--etc/init.d/vyatta-wanloadbalance6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/init.d/vyatta-wanloadbalance b/etc/init.d/vyatta-wanloadbalance
index fb5edcc..7404501 100644
--- a/etc/init.d/vyatta-wanloadbalance
+++ b/etc/init.d/vyatta-wanloadbalance
@@ -10,7 +10,11 @@ test -x $bb || exit 0
start ()
{
- /opt/vyatta/sbin/wan_lb -f $conf -d -i $pid
+ if [ -n "$conf" ] ; then
+ /opt/vyatta/sbin/wan_lb -f $conf -d -i $pid 2>/dev/null
+ else
+ /opt/vyatta/sbin/wan_lb -f /var/load-balance/wlb.conf -d -i $pid 2>/dev/null
+ fi
}
stop ()