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:
parent
0349d28dfa
commit
974926ed63
@ -75,6 +75,7 @@ setupPool() {
|
|||||||
copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static"
|
copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static"
|
||||||
|
|
||||||
sudo service "php${PHP_VERSION}-fpm" restart
|
sudo service "php${PHP_VERSION}-fpm" restart
|
||||||
|
sudo systemctl status "php${PHP_VERSION}-fpm.service"
|
||||||
}
|
}
|
||||||
|
|
||||||
setupPools() {
|
setupPools() {
|
||||||
|
@ -23,7 +23,7 @@ DEBUG_MODE=""
|
|||||||
USE_SLEEP_TIMEOUT=""
|
USE_SLEEP_TIMEOUT=""
|
||||||
|
|
||||||
#Sleep timeout in seconds
|
#Sleep timeout in seconds
|
||||||
SLEEP_TIMEOUT="0.7"
|
SLEEP_TIMEOUT="0.5"
|
||||||
|
|
||||||
#Checking all the required executables
|
#Checking all the required executables
|
||||||
S_PS=$(type -P ps)
|
S_PS=$(type -P ps)
|
||||||
@ -641,11 +641,11 @@ for POOL_ITEM in "${PENDING_LIST[@]}"; do
|
|||||||
if [[ -n "$POOL_NAME" ]] && [[ -n "$POOL_SOCKET" ]]; then
|
if [[ -n "$POOL_NAME" ]] && [[ -n "$POOL_SOCKET" ]]; then
|
||||||
ProcessPool "$POOL_NAME" "$POOL_SOCKET"
|
ProcessPool "$POOL_NAME" "$POOL_SOCKET"
|
||||||
|
|
||||||
#Used for debugging:
|
|
||||||
sleepNow
|
|
||||||
|
|
||||||
#Confirm that we run not too much time
|
#Confirm that we run not too much time
|
||||||
CheckExecutionTime
|
CheckExecutionTime
|
||||||
|
|
||||||
|
#Used for debugging:
|
||||||
|
sleepNow
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user