Be more conservative on the number of fast-cgi processes

This commit is contained in:
Scott Ullrich 2005-09-19 21:37:34 +00:00
parent dfd7754336
commit 2cd9e4df38

View File

@ -188,13 +188,13 @@ EOD;
} else if($avail > 512 and $avail < 684) {
$procs = 7;
} else {
$procs = 8;
$procs = 1;
}
/* generate lighttpd configuration */
system_generate_lighty_config("{$g['varetc_path']}/lighty-CaptivePortal.conf",
$key, $cert, "lighty-CaptivePortal.pid", "8000", "/usr/local/captiveportal/",
"cert-portal.pem", "5", $procs, $use_fastcgi);
"cert-portal.pem", "1", $procs, $use_fastcgi);
/* attempt to start lighttpd */
$res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-CaptivePortal.conf");