weewx exit

51 views
Skip to first unread message

Cat22

unread,
Dec 30, 2019, 10:37:42 AM12/30/19
to weewx-user
I am setting up weewx to run under systemd, well, actually i am refining the unit file. One thing weewxd needs is a way to exit cleanly by a specified signal with exit code 0
What it appears to be,at least as far as i can tell,  is that any exit is an error
Can someone who is python savy comment on this and maybe point out to me how i can get a clean exit code 0 when i do a "systemctl stop weewx"?
Right now i see that in the systemd journal  there is a trace back for sigint and sighup (are there other signals weewx can catch that will produce a different result?

Thomas Keffer

unread,
Dec 30, 2019, 4:39:04 PM12/30/19
to weewx-user
This was fixed in the development branch, to appear in V4, due RSN. If you want to fix your version, here's the diff.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/aea8c2e3-db15-4b77-b53e-18670c550791%40googlegroups.com.

Cat22

unread,
Dec 30, 2019, 7:58:53 PM12/30/19
to weewx-user
Thank you! That solves the issue for me.
Reply all
Reply to author
Forward
0 new messages