mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #929 from YunoHost/force_max_children
Allow to overwrite pm.max_children
This commit is contained in:
commit
175de8f4f5
1 changed files with 6 additions and 0 deletions
|
@ -496,6 +496,12 @@ ynh_get_scalable_phpfpm () {
|
|||
php_max_children=$max_proc
|
||||
fi
|
||||
|
||||
# Get a potential forced value for php_max_children
|
||||
local php_forced_max_children=$(ynh_app_setting_get --app=$app --key=php_forced_max_children)
|
||||
if [ -n "$php_forced_max_children" ]; then
|
||||
php_max_children=$php_forced_max_children
|
||||
fi
|
||||
|
||||
if [ "$php_pm" = "dynamic" ]
|
||||
then
|
||||
# Define pm.start_servers, pm.min_spare_servers and pm.max_spare_servers for a dynamic process manager
|
||||
|
|
Loading…
Add table
Reference in a new issue