diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-02-12 11:35:37 -0800 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-02-12 11:35:37 -0800 |
commit | 9de3018ba050f86f573ae498c382a07841a26b26 (patch) | |
tree | 7e145736ba4c87012ac1974fa9e4e05d68ab719a /etc | |
parent | aaaa54644cbf913f64cbce09c7610ec332f2e613 (diff) | |
download | vyatta-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-wanloadbalance | 6 |
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 () |