From 654d3a6a8a985aa3e7a9a385cb9f9b653fc8eb92 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 28 Jan 2025 13:33:01 +0100 Subject: [PATCH] Update 30-monitoring.sh --- birdnet-pi/rootfs/custom-services.d/30-monitoring.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh index 0f7a01394..1d92899b0 100755 --- a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh +++ b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh @@ -90,17 +90,12 @@ while true; do apprisealert "Too many files in queue (>50)" sudo systemctl stop "$srv" sudo systemctl restart "$srv2" - sleep 30 + sleep 60 elif ((wav_count > 30)); then log_red "$(date) WARNING: Too many files in queue, restarting $srv2" apprisealert "Queue growing large (>30)" sudo systemctl restart "$srv2" sleep 30 - elif ((wav_count == 0)); then - log_red "$(date) WARNING: No files in queue, restarting $srv2" - apprisealert "No files in queue" - sudo systemctl restart "$srv2" - sleep 30 fi # Check service states