Benutzer-Werkzeuge

Webseiten-Werkzeuge


doku:server:infra1.shackspace.de

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
doku:server:infra1.shackspace.de [2023-01-27 20:38] chrisdoku:server:infra1.shackspace.de [2023-11-12 19:13] (aktuell) chris
Zeile 12: Zeile 12:
     * added /root/bin/watch-dnsmasq     * added /root/bin/watch-dnsmasq
  
 +**2023-11-12**
 +  * anwesend: chris
 +  * watchdog m. restart f. dnsmasq erweitert
 +  
 <file txt /etc/cron.d/watch-dnsmasq> <file txt /etc/cron.d/watch-dnsmasq>
 # watch and restart dnsmasq # watch and restart dnsmasq
Zeile 25: Zeile 29:
  
 if grep -q REFUSED <<< "$X" ; then if grep -q REFUSED <<< "$X" ; then
-        echo "DNS resolving failed on infra1.shackspace.de"+        echo "DNS resolving failed on infra1.shackspace.de (found 'REFUSED')"
         echo "restarting dnsmasq..."         echo "restarting dnsmasq..."
         systemctl status dnsmasq         systemctl status dnsmasq
         systemctl restart dnsmasq         systemctl restart dnsmasq
         systemctl status dnsmasq         systemctl status dnsmasq
-fi+else if [ "$X" = "" ] ; then 
 +        echo "DNS resolving failed on infra1.shackspace.de (got empty answer)" 
 +        echo "restarting dnsmasq..." 
 +        systemctl status dnsmasq 
 +        systemctl restart dnsmasq 
 +        systemctl status dnsmasq 
 +fi fi
 </file> </file>
  
doku/server/infra1.shackspace.de.txt · Zuletzt geändert: 2023-11-12 19:13 von chris