Crash Recovery

All the topics related to QLC+ on the Raspberry Pi
Post Reply
markzvo
Posts: 68
Joined: Sat Jan 28, 2017 1:52 am
Real Name: Mark Z

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?
lighthacker2020
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.
markzvo
Posts: 68
Joined: Sat Jan 28, 2017 1:52 am
Real Name: Mark Z

Yes, as stated:
Unfortunately, Running 'systemctl daemon-reload' does not work and definitely does not work after a reboot as the message returns.
markzvo
Posts: 68
Joined: Sat Jan 28, 2017 1:52 am
Real Name: Mark Z

I have decided to just reboot the Pi if QLC+ crashes as that command (below) appears to be working.
start program = "/sbin/shutdown -r now"
User avatar
GGGss
Posts: 2732
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

markzvo wrote: Fri Aug 13, 2021 5:52 pm I have decided to just reboot the Pi if QLC+ crashes as that command (below) appears to be working.
start program = "/sbin/shutdown -r now"
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
markzvo
Posts: 68
Joined: Sat Jan 28, 2017 1:52 am
Real Name: Mark Z

I do not run QLC+ as admin - it runs as set in the image.

This script just works... no sudo needed.
Post Reply