It's pretty simple, really. Your weewx.service file will have a section
that looks like

[Service]
ExecStart=/home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
/home/weewx/weewx.conf
ExecReload=/bin/kill -HUP $MAINPID
Type=forking
PIDFile=/var/run/weewx.pid

You want to invoke python explicitly, instead of relying on the "shebang"
inside /home/weewx/bin/weewxd. Change the file to something like

[Service]
ExecStart=/usr/bin/python2 /home/weewx/bin/weewxd --daemon
--pidfile=/var/run/weewx.pid /home/weewx/weewx.conf
ExecReload=/bin/kill -HUP $MAINPID
Type=forking
PIDFile=/var/run/weewx.pid

I'm just guessing that the path to your Python 2 interpreter is
/usr/bin/python2. Adjust as necessary.

-tk

On Fri, May 22, 2020 at 4:24 AM Gazza <[email protected]> wrote:

> I did a setup.py install.
>
> --
> 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/7861469a-91a4-47ff-a15c-9db2f1cf9188%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/7861469a-91a4-47ff-a15c-9db2f1cf9188%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEBBemFA%3DTBxWMHR0eiEkYsmW1oviUH9uLYtt7bweBXLQQ%40mail.gmail.com.

Reply via email to