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:
parent
c13a0e822f
commit
639e654002
@ -27,6 +27,10 @@ copyPool() {
|
|||||||
sudo sed -i "s#listen =.*#listen = $POOL_SOCKET#" "$NEW_POOL_FILE"
|
sudo sed -i "s#listen =.*#listen = $POOL_SOCKET#" "$NEW_POOL_FILE"
|
||||||
#Pool name
|
#Pool name
|
||||||
sudo sed -i "s#\[www\]#[$POOL_NAME]#" "$NEW_POOL_FILE"
|
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() {
|
setupPool() {
|
||||||
@ -126,7 +130,9 @@ oneTimeSetUp() {
|
|||||||
|
|
||||||
tearDown() {
|
tearDown() {
|
||||||
restoreUserParameters
|
restoreUserParameters
|
||||||
|
sleep 2
|
||||||
sudo service zabbix-agent restart
|
sudo service zabbix-agent restart
|
||||||
|
sleep 2
|
||||||
}
|
}
|
||||||
|
|
||||||
testZabbixGetInstalled() {
|
testZabbixGetInstalled() {
|
||||||
|
Loading…
Reference in New Issue
Block a user