From 651d99c50218ae2c3d0089ffdf2223ddb959fc1b Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Mon, 7 Jul 2008 04:06:35 +0000 Subject: allow relayd to actually restart sitedown isn't required, but may still be set to nothing, don't write out a bogus config line in this situation --- etc/inc/vslb.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 05dfa86..9bf5d7d 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -65,7 +65,7 @@ function relayd_configure() { $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 tcp\n"; /* XXX - this needs to use the backup pool aka sitedown - but that isn't converted yet */ - if (isset($vs_a[$i]['sitedown'])) + if (isset($vs_a[$i]['sitedown']) && $vs_a[$i]['sitedown'] != "") $conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} check tcp\n"; $conf .= "}\n"; } @@ -73,7 +73,7 @@ function relayd_configure() { fwrite($fd, $conf); fclose($fd); - if (is_process_running('/usr/local/sbin/relayd')) { + if (is_process_running('relayd: parent')) { /* * XXX: Something breaks our control connection with relayd and makes relayctl stop working * rule reloads are the current suspect @@ -85,4 +85,4 @@ function relayd_configure() { } -?> \ No newline at end of file +?> -- cgit v1.1