From 259f606eb8b186e2b1033036a11467c610188100 Mon Sep 17 00:00:00 2001 From: Pierre POMES Date: Sun, 19 Feb 2012 19:25:09 -0500 Subject: Ticket #2205 - Main logic for relayd global settings screen, still need to add stuff (input validation, etc) before closing ticket --- etc/inc/vslb.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 71ea75f..dfe2705 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -165,6 +165,7 @@ function relayd_configure($kill_first=false) { $vs_a = $config['load_balancer']['virtual_server']; $pool_a = $config['load_balancer']['lbpool']; $protocol_a = $config['load_balancer']['lbprotocol']; + $setting = $config['load_balancer']['setting']; $check_a = array(); @@ -202,7 +203,8 @@ function relayd_configure($kill_first=false) { /* reindex pools by name as we loop through the pools array */ $pools = array(); $conf .= "log updates \n"; - $conf .= "timeout 1000 \n"; + $conf .= "timeout ".$setting['timeout']." \n"; + $conf .= "interval ".$setting['interval']." \n"; /* Virtual server pools */ if(is_array($pool_a)) { for ($i = 0; isset($pool_a[$i]); $i++) { -- cgit v1.1