From 13bf9791fcb7caa9a09c778da84f8c27533d4fce Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 4 Feb 2025 13:30:24 +0100 Subject: [PATCH] Update 30-monitoring.sh --- birdnet-pi/rootfs/custom-services.d/30-monitoring.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh index 5db8da7f2..f9615cac0 100755 --- a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh +++ b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh @@ -113,11 +113,11 @@ check_and_restart_service() { if [[ "$state" != "active" ]]; then log_yellow "$(date) INFO: Restarting $service_name" sudo systemctl restart "$service_name" - sleep 5 + sleep 61 state=$(systemctl is-active "$service_name") if [[ "$state" != "active" ]]; then log_red "$(date) WARNING: $service_name could not restart" - apprisealert "$service_name cannot restart" + apprisealert "$service_name cannot restart ! Your system seems stuck." fi fi }