Update 30-monitoring.sh

This commit is contained in:
Alexandre
2025-02-04 13:30:24 +01:00
committed by GitHub
parent 5893c63885
commit 13bf9791fc

View File

@@ -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
}