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

[fix] sleep timeout

This commit is contained in:
Ramil Valitov 2020-07-07 06:27:30 +03:00
parent 0349d28dfa
commit 974926ed63
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914
2 changed files with 5 additions and 4 deletions

View File

@ -75,6 +75,7 @@ setupPool() {
copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static"
sudo service "php${PHP_VERSION}-fpm" restart
sudo systemctl status "php${PHP_VERSION}-fpm.service"
}
setupPools() {

View File

@ -23,7 +23,7 @@ DEBUG_MODE=""
USE_SLEEP_TIMEOUT=""
#Sleep timeout in seconds
SLEEP_TIMEOUT="0.7"
SLEEP_TIMEOUT="0.5"
#Checking all the required executables
S_PS=$(type -P ps)
@ -641,11 +641,11 @@ for POOL_ITEM in "${PENDING_LIST[@]}"; do
if [[ -n "$POOL_NAME" ]] && [[ -n "$POOL_SOCKET" ]]; then
ProcessPool "$POOL_NAME" "$POOL_SOCKET"
#Used for debugging:
sleepNow
#Confirm that we run not too much time
CheckExecutionTime
#Used for debugging:
sleepNow
fi
done