Hi guys, my Weewx is crashing time by time.
I am looking for a script which is checking the status of Weewx every hour. In case Weewx was crashing the script is starting Weewx. My Linux knowledge is not the best at all. Looking like something: It does not work. #!/bin/bash #weewx check if ps x | grep -v grep | grep -v checkweewx.sh | grep -c weewx >/dev/null then echo "weewx .... ok" else echo "" date >> /etc/weewx/weewx.fail echo "weewx crashed ... restarting now" >> /usr/local/ sleep 1 /etc/init.d/weewx start fi Thanks -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.