I have tried to use the instructions in the Wiki about using systemd to manage WeeWx on my Raspbian (2016-11-25) with mixed success.
Using the SysV file in /etc/init.d (with the addition of a dependency on $network) it worked well but I could not stop or start the daemon interactively. When I put the weewx.system file in /etc/systemd/ as per the wiki page, the service would not start (on reboot or manually with 'sudo systemctl start weewx') complaining that it could not find the file/directory. However when I put the weewx.service file in /usr/lib/systemd/system/weewx.service it works beautifully; the service can now be started, stopped, restarted and the status checked with systemd. While I don't pretend to understand it all, I did see some mention in the systemd related results form my Google search that systemd does have problems with symlinks but I don't think /etc/systemd uses symlinks. Also from what I've read /etc/systemd should work - maybe it is something specific to Raspbian but I don't understnad the OS and systemd well enough. Anyway, perhaps this might be added to the wiki page - that if putting the file in /etc/systemd results in 'file/directory not found' messages then /usr/lib/systemd/system does work. Cheers Susan
