Crash Recovery
Posted: Tue Aug 10, 2021 6:43 pm
I can't get any crash recovery working. I want QLC+ to restart on the Pi when it crashes or when exited by a user.
I have tried adding:
[Service]
Restart=always
RestartSec=10s
to the file "/etc/systemd/system/qlcplus.service.d/override.conf" and this does not work. Nothing happens.
I have also installed monit
I have configured the service correctly and in the file "/etc/monit/conf.d/qlcplus" I have set:
check process qlcplus with pidfile /var/run/qlcplus.pid
start program = "/etc/init.d/qlcplus start"
stop program = "/etc/init.d/qlcplus stop"
and this does not work either. Although the Pi sees qlcplus as stopped and attempts to restart it, I receive the following error in "/var/log/monit.log":
error : 'qlcplus' failed to start (exit status 0) -- '/etc/init.d/qlcplus start': Warning: The unit file, source configuration file or drop-ins of qlcplus.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Unfortunately, Running 'systemctl daemon-reload' does not work and definitely does not work after a reboot as the message returns.
Any suggestions on how to automatically restart qlcplus after a crash?
I have tried adding:
[Service]
Restart=always
RestartSec=10s
to the file "/etc/systemd/system/qlcplus.service.d/override.conf" and this does not work. Nothing happens.
I have also installed monit
I have configured the service correctly and in the file "/etc/monit/conf.d/qlcplus" I have set:
check process qlcplus with pidfile /var/run/qlcplus.pid
start program = "/etc/init.d/qlcplus start"
stop program = "/etc/init.d/qlcplus stop"
and this does not work either. Although the Pi sees qlcplus as stopped and attempts to restart it, I receive the following error in "/var/log/monit.log":
error : 'qlcplus' failed to start (exit status 0) -- '/etc/init.d/qlcplus start': Warning: The unit file, source configuration file or drop-ins of qlcplus.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Unfortunately, Running 'systemctl daemon-reload' does not work and definitely does not work after a reboot as the message returns.
Any suggestions on how to automatically restart qlcplus after a crash?