From bf34d0de21e59aac87bfa9b1cfcc46eba4b67b41 Mon Sep 17 00:00:00 2001 From: Pierre POMES Date: Mon, 27 Feb 2012 15:44:32 -0500 Subject: Ticket #2205 - Add prefork setting --- etc/inc/vslb.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'etc/inc/vslb.inc') diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 2659197..e259d19 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -201,8 +201,11 @@ function relayd_configure($kill_first=false) { $fd = fopen("{$g['varetc_path']}/relayd.conf", "w"); $conf .= "log updates \n"; - /* Global timeout and interval settings - if not specified by the user, use a 1000 ms timeout value as in pfsense 2.0.1 and above */ + /* Global timeout, interval and prefork settings + if not specified by the user: + - use a 1000 ms timeout value as in pfsense 2.0.1 and above + - leave interval and prefork empty, relayd will use its default values */ + if (isset($setting['timeout']) && !empty($setting['timeout'])) { $conf .= "timeout ".$setting['timeout']." \n"; } else { @@ -213,6 +216,10 @@ function relayd_configure($kill_first=false) { $conf .= "interval ".$setting['interval']." \n"; } + if (isset($setting['prefork']) && !empty($setting['prefork'])) { + $conf .= "prefork ".$setting['prefork']." \n"; + } + /* reindex pools by name as we loop through the pools array */ $pools = array(); /* Virtual server pools */ -- cgit v1.1