diff options
Diffstat (limited to 'etc/inc/vslb.inc')
-rw-r--r-- | etc/inc/vslb.inc | 11 |
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 */ |