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?
Crash Recovery
-
- Posts: 42
- Joined: Mon Jan 06, 2020 2:40 am
- Real Name: Mr Mike
I assume you followed the instructions in the error message? Systemd has this odd quirk in that any changes to the unit files require that daemon-reload command to get executed (or reboot the system) to make systemd aware of the updated configuration.
- GGGss
- Posts: 3152
- Joined: Mon Sep 12, 2016 7:15 pm
- Location: Belgium
- Real Name: Fredje Gallon
Open question: don't you need sudo rights to reboot? Or do you start (boot) QLC+ as admin?
All electric machines work on smoke... when the smoke escapes... they don't work anymore