Thanks Bob,

I had already found

Restart=always
RestartSec=60

And these appear to have stopped the crashes, and I know they shouldn't but 
my system has now been running without a restart for nearly 24 hours, the 
previous best was 11 hours.

If it survives for more than a few days then I am going to cut over to the 
new version and my Raspberry Pi.


On Monday, March 16, 2020 at 6:30:06 PM UTC, Bob Atchley wrote:
>
> I can't help with your crash reason, but interestingly I missed the 
> documentation on weewx systemd and independently set up my weewx systemd 
> service.  Its very similar but works (at least for me on a raspberry pi 
> 2).  There is one difference (that may or may not be important) which is 
> that I created the weewx service file here:
> /lib/systemd/system/weewx.service
> so /lib rather than /etc
>
> The content is similar, but I'll copy here in case its important:
>
> [Unit]
> Description=weewx weather station data gatherer
> After=multi-user.target
>
> [Service]
> Type=simple
> User=weewx
> Group=weewx
> WorkingDirectory=/home/weewx/
> ExecStart=/home/weewx/bin/weewxd /home/weewx/weewx.conf
> Restart=always
> RestartSec=60
>
> [Install]
> WantedBy=multi-user.target
>
> Hope this helps
> Regards
> Bob
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e1623979-f179-4dcd-9117-a670364d416e%40googlegroups.com.

Reply via email to