Allow to overwrite pm.max_children

This commit is contained in:
Maniack Crudelis 2020-04-14 12:47:29 +02:00 committed by GitHub
parent f6377b388d
commit df47040462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -402,6 +402,12 @@ ynh_get_scalable_phpfpm () {
php_max_children=$max_proc
fi
# Get an 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