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

[add] more timeout for ondemand pools

This commit is contained in:
Ramil Valitov 2020-07-07 12:13:33 +03:00
parent c13a0e822f
commit 639e654002
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -27,6 +27,10 @@ copyPool() {
sudo sed -i "s#listen =.*#listen = $POOL_SOCKET#" "$NEW_POOL_FILE"
#Pool name
sudo sed -i "s#\[www\]#[$POOL_NAME]#" "$NEW_POOL_FILE"
if [[ $POOL_TYPE == "ondemand" ]]; then
sudo sed -i 's#;pm.process_idle_timeout.*#pm.process_idle_timeout = 60s#' "$NEW_POOL_FILE"
fi
}
setupPool() {
@ -126,7 +130,9 @@ oneTimeSetUp() {
tearDown() {
restoreUserParameters
sleep 2
sudo service zabbix-agent restart
sleep 2
}
testZabbixGetInstalled() {