Weewx does not crash without a reason.  Believe me - it doesn't.

What does the log have to say around the time of the crashes.  Fixing the 
cause of your crashes is the right way to go about fixing the problem 
rather than trying a sticky plaster approach with automated restarts.  
Automated restarts are just the wrong way to go about this - believe me.

Can you tell us your station type, install method and attach a log and/or 
config file and say what skin(s) or extensions you are using.

Then we can help you sort out your problems.

If you are using a raspberry pi have you also checked the weewx wiki for 
advice on using weewx with a raspberry pi


On Thursday, 24 May 2018 09:42:18 UTC+3, Mike wrote:
>
> 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.

Reply via email to