From 35b2b754f642825c2321bc63fcd3ab9bb80ad2f5 Mon Sep 17 00:00:00 2001 From: Andreas Adlung Date: Mon, 24 Jul 2023 14:36:12 +0200 Subject: [PATCH] cfg_hide_pools is not used for the initial building of the @pools array. There might be servers where there is a config, but no running socket due to automation or temporary shutdown. An explicit usage of cfg_hide_pools should not be used at all, as cgi-fcgi can't connect if it's not there --- phpfpm-multi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpfpm-multi b/phpfpm-multi index 8846feb..98ab369 100755 --- a/phpfpm-multi +++ b/phpfpm-multi @@ -142,6 +142,10 @@ if (opendir my $dh, $cfg_pooldir) { next; } + if ( grep( /^$pool->{pool}$/, @cfg_hide_pools ) ) { + next; + } + # Replace $pool in socket and pm.status_path $pool->{socket} =~ s/\$pool/$pool->{pool}/g; $pool->{statuspath} =~ s/\$pool/$pool->{pool}/g;