implement php-fpm process-manager 'ondemand', fixes #1035

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-03-07 15:40:07 +01:00
parent f1e7c09d96
commit a048cd96b1
4 changed files with 10 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ class phpinterface_fpm
$fpm_config.= 'pm = '.$fpm_pm."\n";
$fpm_config.= 'pm.max_children = '.$fpm_children."\n";
if($fpm_pm == 'dynamic') {
if($fpm_pm == 'dynamic' || $fpm_pm == 'ondemand') {
$fpm_config.= 'pm.start_servers = '.$fpm_start_servers."\n";
$fpm_config.= 'pm.min_spare_servers = '.$fpm_min_spare_servers."\n";
$fpm_config.= 'pm.max_spare_servers = '.$fpm_max_spare_servers."\n";