Following from @borpin’s maintenance mode thread, I’ve added a systemd service script for feedwriter (same as method used for phpmqtt_input), which works a treat for automatic restarting of feedwriter. This will make its way into an emonpi/emonbase update soon.
Removal of existing /etc/init.d feedwriter service:
sudo service feedwriter stop sudo update-rc.d feedwriter disable sudo rm /etc/init.d/feedwriter
Installation of systemd feedwriter service:
sudo ln -s /var/www/emoncms/scripts/services/feedwriter/feedwriter.service /lib/systemd/system sudo systemctl enable feedwriter.service sudo systemctl start feedwriter.service
To check the status of feedwriter:
sudo systemctl status feedwriter.service
Edited: for consistency with service-runner installation path.