From f8cb57dba22f108865bdd84dd4d6866059fb41b8 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 11 Jul 2010 17:23:44 -0400 Subject: couple load balancer fixes, resolves #723 --- etc/inc/vslb.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index ef35c2b..4c90f22 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -230,7 +230,7 @@ function relayd_configure() { if(is_array($vs_a)) { for ($i = 0; isset($vs_a[$i]); $i++) { switch($vs_a[$i]['mode']) { - case 'redirect': { + case 'redirect_mode': { $conf .= "redirect \"{$vs_a[$i]['name']}\" {\n"; $conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; $conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; @@ -259,7 +259,7 @@ function relayd_configure() { fwrite($fd, $conf); fclose($fd); - if (is_process_running('relayd: parent')) { + if (is_process_running('relayd')) { /* * XXX: Something breaks our control connection with relayd and makes relayctl stop working * rule reloads are the current suspect -- cgit v1.1