DB "canary" added - with fail/restart when connection dropped
[weathermon.git] / bin / weather-watchdog
index 4847477eec1e7f43ec4617626758c68b5ffc344b..48c4bff38ad5eface86b41aca999248811ec8edb 100644 (file)
@@ -4,7 +4,8 @@ stamp=`date +%s -r $(uci get weathermon.process.dump_file)`
 now=`date +%s`
 delta=$(( $now - $stamp ))
 if [[ $delta -ge 300 ]]; then
+  logger weathermon restarting...
   /etc/init.d/weathermon restart
 fi
 
-pgrep weather-display > /dev/null || /etc/init.d/weather-display restart
+pgrep weather-lcd > /dev/null || /etc/init.d/lcd-weather restart