This commit is contained in:
2025-06-22 10:22:50 -05:00
parent 5b52538cbb
commit 66ab8dfdf5
2 changed files with 7 additions and 2 deletions

View File

@@ -29,9 +29,14 @@ SINGLE_SERVER_SERVICE_CHECK(){
if [ "${dnstest}" != "" ] && [[ "${dnstest}" != *";;"* ]]; then
completed=true
break
elif [ $(($(date +%s)-scanstart)) -ge 600 ]; then
SENDNOTICE "${NM_HOSTNAMES[${RUN_NODE_IP}]} DNS Startup Failure 1" "${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP})
Server did not start serving DNS requests within 10mins, starting Pi-Hole repair...." 1
/usr/local/bin/pihole -r
elif [ $(($(date +%s)-scanstart)) -ge 1200 ]; then
SENDNOTICE "${NM_HOSTNAMES[${RUN_NODE_IP}]} DNS Startup Failure" "${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP})
SENDNOTICE "${NM_HOSTNAMES[${RUN_NODE_IP}]} DNS Startup Failure 2" "${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP})
Server did not start serving DNS requests within 20mins you moron...." 1
killall bash
exit 1