diff -ruN smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud --- smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2020-12-01 15:11:43.509587378 +0100 +++ smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2020-12-01 15:12:53.825705751 +0100 @@ -14,10 +14,8 @@ my $start_servers = $nextcloud{'PHPstartServers'} || 6; my $max_spare_servers = $nextcloud{'PHPmaxServers'} || 8; my $max_requests = $nextcloud{'PHPmaxRequests'} || 1000; - # We probably ought to check that - # min Servers <= max Servers - # and - # start Servers >=min and <=max + $min_spare_servers = ( $min_spare_servers > $max_spare_servers ) ? printf("%.0f",$max_spare_servers/2) : $min_spare_servers; + $start_servers = ( $start_servers > $max_spare_servers ) ? printf("%.0f", $max_spare_servers /2 + $min_spare_servers/2 ) : $start_servers; $OUT .=<<_EOF;