mirror of
https://github.com/rvalitov/zabbix-php-fpm.git
synced 2023-11-05 03:30:27 +01:00
[fix] delete cache
This commit is contained in:
parent
5b5765d8a3
commit
d3d90e6e6b
@ -78,9 +78,12 @@ setupPool() {
|
|||||||
POOL_SOCKET="127.0.0.1:$POOL_PORT"
|
POOL_SOCKET="127.0.0.1:$POOL_PORT"
|
||||||
copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static"
|
copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static"
|
||||||
|
|
||||||
|
echo "List of configured PHP$PHP_VERSION pools:"
|
||||||
sudo ls -l "$POOL_DIR"
|
sudo ls -l "$POOL_DIR"
|
||||||
sudo service "php${PHP_VERSION}-fpm" restart
|
sudo service "php${PHP_VERSION}-fpm" restart
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
|
echo "List of running PHP$PHP_VERSION pools:"
|
||||||
sudo systemctl -l status "php${PHP_VERSION}-fpm.service"
|
sudo systemctl -l status "php${PHP_VERSION}-fpm.service"
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
@ -134,7 +137,8 @@ oneTimeSetUp() {
|
|||||||
#Called before every test
|
#Called before every test
|
||||||
setUp() {
|
setUp() {
|
||||||
#Delete all cache files
|
#Delete all cache files
|
||||||
sudo rm -rf "/etc/zabbix/*.cache"
|
sudo rm -f "/etc/zabbix/php_fpm_results.cache"
|
||||||
|
sudo rm -f "/etc/zabbix/php_fpm_pending.cache"
|
||||||
}
|
}
|
||||||
|
|
||||||
#Called after every test
|
#Called after every test
|
||||||
@ -257,6 +261,7 @@ function restoreUserParameters() {
|
|||||||
function AddSleepToConfig() {
|
function AddSleepToConfig() {
|
||||||
PARAMS_FILE=$(getUserParameters)
|
PARAMS_FILE=$(getUserParameters)
|
||||||
sudo sed -i 's#.*zabbix_php_fpm_discovery.*#UserParameter=php-fpm.discover[*],sudo /etc/zabbix/zabbix_php_fpm_discovery.sh sleep $1#' "$PARAMS_FILE"
|
sudo sed -i 's#.*zabbix_php_fpm_discovery.*#UserParameter=php-fpm.discover[*],sudo /etc/zabbix/zabbix_php_fpm_discovery.sh sleep $1#' "$PARAMS_FILE"
|
||||||
|
echo "New UserParameter file:"
|
||||||
sudo cat "$PARAMS_FILE"
|
sudo cat "$PARAMS_FILE"
|
||||||
sudo service zabbix-agent restart
|
sudo service zabbix-agent restart
|
||||||
sleep 2
|
sleep 2
|
||||||
|
Loading…
Reference in New Issue
Block a user