Update 30-monitoring.sh

This commit is contained in:
Alexandre
2024-05-11 08:07:37 +02:00
committed by GitHub
parent e4a71f64c4
commit 1d376c8a03

View File

@@ -39,7 +39,7 @@ while true; do
############################
if (( counter <= 0 )); then
latest=$(cat "$ingest_dir/analyzing_now.txt)
latest="$(cat "$ingest_dir"/analyzing_now.txt)"
if [[ "$latest" == "$analyzing_now" ]]; then
echo "$(date) WARNING no change in analyzing_now for 10 iterations, restarting services"
"$HOME"/BirdNET-Pi/scripts/restart_services.sh