aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy_global.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-01-23 14:44:26 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-01-23 14:44:26 -0500
commit938978b9367ea481fb6ea720e39daf85a41824e4 (patch)
tree933054a8365f4f80a0b54a4266bce82e14a71ac6 /config/haproxy/haproxy_global.php
parent1ed3e82fa6a8a84b8c9490168ca412016c8877b4 (diff)
downloadpfsense-packages-938978b9367ea481fb6ea720e39daf85a41824e4.tar.gz
pfsense-packages-938978b9367ea481fb6ea720e39daf85a41824e4.tar.bz2
pfsense-packages-938978b9367ea481fb6ea720e39daf85a41824e4.zip
Make nbproc a tunable item on global settings tab
Diffstat (limited to 'config/haproxy/haproxy_global.php')
-rwxr-xr-xconfig/haproxy/haproxy_global.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php
index dc0949b4..290631ae 100755
--- a/config/haproxy/haproxy_global.php
+++ b/config/haproxy/haproxy_global.php
@@ -78,6 +78,7 @@ if ($_POST) {
$config['installedpackages']['haproxy']['remotesyslog'] = $_POST['remotesyslog'] ? $_POST['remotesyslog'] : false;
$config['installedpackages']['haproxy']['syncpassword'] = $_POST['syncpassword'] ? $_POST['syncpassword'] : false;
$config['installedpackages']['haproxy']['advanced'] = base64_encode($_POST['advanced']) ? $_POST['advanced'] : false;
+ $config['installedpackages']['haproxy']['nbproc'] = $_POST['nbproc'] ? $_POST['nbproc'] : false;
touch($d_haproxyconfdirty_path);
write_config();
}
@@ -94,6 +95,7 @@ $pconfig['synchost2'] = $config['installedpackages']['haproxy']['synchost2'];
$pconfig['synchost3'] = $config['installedpackages']['haproxy']['synchost3'];
$pconfig['remotesyslog'] = $config['installedpackages']['haproxy']['remotesyslog'];
$pconfig['advanced'] = base64_decode($config['installedpackages']['haproxy']['advanced']);
+$pconfig['nbproc'] = $config['installedpackages']['haproxy']['nbproc'];
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
if(strstr($pfSversion, "1.2"))
@@ -200,6 +202,16 @@ function enable_change(enable_change) {
</tr>
<tr>
<td valign="top" class="vncell">
+ Number of processes to start.
+ </td>
+ <td class="vtable">
+ <input name="nbproc" type="text" class="formfld" id="nbproc" size="18" value="<?=htmlspecialchars($pconfig['nbproc']);?>">
+ <br/>
+ Defaults to number of cores/processors installed if left blank.
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" class="vncell">
Remote syslog host
</td>
<td class="vtable">