3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[fix] status

This commit is contained in:
Ramil Valitov 2020-07-06 23:54:50 +03:00
parent 98b33b3d99
commit 19de506b60
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -36,11 +36,6 @@ setupPool() {
#Delete all active pools except www.conf: #Delete all active pools except www.conf:
sudo find "$POOL_DIR" -name '*.conf' -type f -not -name 'www.conf' -exec rm -rf {} \; sudo find "$POOL_DIR" -name '*.conf' -type f -not -name 'www.conf' -exec rm -rf {} \;
#Add status path
sudo sed -i 's#;pm.status_path.*#pm.status_path = /php-fpm-status#' "$POOL_FILE"
#Set pool manager
sudo sed -i 's#pm = dynamic#pm = static#' "$POOL_FILE"
#Create new socket pools #Create new socket pools
for ((c = 1; c <= MAX_POOLS; c++)); do for ((c = 1; c <= MAX_POOLS; c++)); do
POOL_NAME="static$c" POOL_NAME="static$c"