On Saturday, April 24, 2021 at 12:47:22 PM UTC-7 [email protected] wrote:

> I followed the Debian instructions for adding a weewx daemon using the 
> init.d commands.
> I don't think it worked, because there is no evidence of weewx running.
> - not seeing weather station data appearing in /var/log/syslog
> - not seeing weewx in the "top" screen
> - not seeing a /var/run/weewx.pid file
> - no /home/weewx/public_html/index.html file is being created
>
> Now, I guess the mystery is, why isn't weewx running as a daemon?
>
>  
Without seeing exactly which commands you ran, it's impossible to help.
 

If I manually call 'sudo /etc/init.d/weewx start', I do not see any entries 
> appear in the /var/log/syslog.
>  
>
Didn't Ubuntu move to using 'service name start/stop' commands?
>
>
No, it moved 'away' from that toward systemd commands, although it works 
either way as a backward compatibility item. It moved YEARS ago to systemd. 
 You should just learn the new systemd way and use that.

If you want to go to systemd service files for weewx, you should remove the 
/etc/init.d/weewx file and install and enable the weewx service file that 
comes in the distribution.

(after you remove the init.d file you seem to have put into place)
sudo cp /home/weewx/util/systemd/weewx.service /etc/systemd/system
sudo systemctl enable weewx
sudo systemctl start weewx

-- 
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/bd0681c8-eb7c-4c5a-87d3-44f2a00d57a3n%40googlegroups.com.

Reply via email to