diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-01-21 10:52:41 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-01-21 10:52:41 -0500 |
commit | 5ffe1ad2f94e8cb6d9aa50160ee3ee7d511f7192 (patch) | |
tree | b585f11ad62110e8ddf039404db9a9dd16debfe6 /config/haproxy/haproxy.inc | |
parent | d139a297c69528d10290ca9dfee841674e0c9546 (diff) | |
download | pfsense-packages-5ffe1ad2f94e8cb6d9aa50160ee3ee7d511f7192.tar.gz pfsense-packages-5ffe1ad2f94e8cb6d9aa50160ee3ee7d511f7192.tar.bz2 pfsense-packages-5ffe1ad2f94e8cb6d9aa50160ee3ee7d511f7192.zip |
Adding definable check inter support. Fix httpclose and forwardfor options
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r-- | config/haproxy/haproxy.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index 034e3f9d..15a5a84d 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -245,8 +245,12 @@ function haproxy_configure() { } else { $advanced_txt = ""; } + if($server['checkinter']) + $checkinter = "check inter {$server['checkinter']}"; + else + $checkinter = "check inter 1000"; foreach($server_ports as $pport) - fwrite ($fd, "\tserver\t\t\t" . $server['name'] . " " . $server['address'].":" . $pport . " $cookie " . " check inter 1000 weight " . $server['weight'] . "{$advanced_txt}\n"); + fwrite ($fd, "\tserver\t\t\t" . $server['name'] . " " . $server['address'].":" . $pport . " $cookie " . " $checkinter weight " . $server['weight'] . "{$advanced_txt}\n"); } } } @@ -274,6 +278,8 @@ function haproxy_configure() { // create config file fclose($fd); + exec(""); + // reload haproxy if(isset($a_global['enable'])) { if(is_process_running('haproxy')) { |