summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPierre POMES <pierre.pomes@gmail.com>2012-02-27 15:44:32 -0500
committerPierre POMES <pierre.pomes@gmail.com>2012-02-27 15:44:32 -0500
commitbf34d0de21e59aac87bfa9b1cfcc46eba4b67b41 (patch)
tree6ad1b9e4bd9f1bca71ff854854edebd7d41c21dc /etc
parenta7a1316811845345cedbae181205000108c9ebe0 (diff)
downloadpfsense-bf34d0de21e59aac87bfa9b1cfcc46eba4b67b41.zip
pfsense-bf34d0de21e59aac87bfa9b1cfcc46eba4b67b41.tar.gz
Ticket #2205 - Add prefork setting
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vslb.inc11
1 files changed, 9 insertions, 2 deletions
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 */
OpenPOWER on IntegriCloud