diff options
author | Michael Larson <mike@vyatta.com> | 2011-01-04 10:39:49 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2011-01-05 11:50:53 -0800 |
commit | 5932b3640418ef157ef443a1cb62a1c8e666215e (patch) | |
tree | 853c0b2f3ba38a0dff6edb51bd2db2ffc47a9da4 /scripts | |
parent | 179e84deac2d92feb68348240b8ffa2d10780b07 (diff) | |
download | vyatta-wanloadbalance-5932b3640418ef157ef443a1cb62a1c8e666215e.tar.gz vyatta-wanloadbalance-5932b3640418ef157ef443a1cb62a1c8e666215e.zip |
convert wlb runtime directory to /var/run/load-balance from /var/load-balance. fix for bug 6630
(cherry picked from commit cf1754c28af9dc17f5dea4995049823dc7687a63)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ppp/ppp-wanlb | 2 | ||||
-rwxr-xr-x | scripts/vyatta-wanloadbalance.init | 4 | ||||
-rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 4 | ||||
-rw-r--r-- | scripts/vyatta-wlb-connection.pl | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/scripts/ppp/ppp-wanlb b/scripts/ppp/ppp-wanlb index f31e8e2..f76dee0 100644 --- a/scripts/ppp/ppp-wanlb +++ b/scripts/ppp/ppp-wanlb @@ -1,6 +1,6 @@ #! /bin/sh -echo $5 > /var/load-balance/ppp/$6 +echo $5 > /var/run/load-balance/ppp/$6 pid=/var/run/vyatta/wlb.pid if [ -f $pid ]; then diff --git a/scripts/vyatta-wanloadbalance.init b/scripts/vyatta-wanloadbalance.init index 3e0c1e8..eeccc32 100755 --- a/scripts/vyatta-wanloadbalance.init +++ b/scripts/vyatta-wanloadbalance.init @@ -10,8 +10,8 @@ test -x $bb || exit 0 start () { -# /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 +# /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 } stop () diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl index 0306653..a3afba4 100644 --- a/scripts/vyatta-wanloadbalance.pl +++ b/scripts/vyatta-wanloadbalance.pl @@ -312,8 +312,8 @@ GetOptions("valid-nexthop=s" => \$nexthop, ) or usage(); ####main -my $conf_file = '/var/load-balance/wlb.conf'; -my $conf_lck_file = '/var/load-balance/wlb.conf.lck'; +my $conf_file = '/var/run/load-balance/wlb.conf'; +my $conf_lck_file = '/var/run/load-balance/wlb.conf.lck'; ####are we just validating? if (defined $nexthop) { diff --git a/scripts/vyatta-wlb-connection.pl b/scripts/vyatta-wlb-connection.pl index 902e0aa..c67e8bf 100644 --- a/scripts/vyatta-wlb-connection.pl +++ b/scripts/vyatta-wlb-connection.pl @@ -25,8 +25,8 @@ use lib "/opt/vyatta/share/perl5/"; -#examine /var/load-balance/wlb.conf for disable-source-nat -if (!open($CONFFILE, "<", "/var/load-balance/wlb.conf")) { +#examine /var/run/load-balance/wlb.conf for disable-source-nat +if (!open($CONFFILE, "<", "/var/run/load-balance/wlb.conf")) { return; } $_ = <$CONFFILE>; |