-
Notifications
You must be signed in to change notification settings - Fork 396
Restart on crashes
Warning: If you encounter crashes with AlexaPi, please report them, so we can fix them. That is the solution. This feature exists as a last resort when for example the app crashes after several weeks of operation due to some memory leak and there is no obvious way to solve it.
This feature is controlled by a systemd unit override file /etc/systemd/system/AlexaPi.service.d/restart.conf.
If you wish to enable it:
sudo cp /opt/AlexaPi/src/scripts/unit-overrides/restart.conf /etc/systemd/system/AlexaPi.service.d/
And to disable it:
sudo rm /etc/systemd/system/AlexaPi.service.d/restart.conf
And sudo systemctl daemon-reload
for the changes to take effect.
The feature is controlled by the presence of /etc/opt/AlexaPi/monitor_enable.
If you wish to enable it: sudo touch /etc/opt/AlexaPi/monitor_enable
And to disable it: sudo rm /etc/opt/AlexaPi/monitor_enable
To prevent the re-spawn from happening, add a file called monitor_pause into the /run/AlexaPi directory.
sudo touch /run/AlexaPi/monitor_pause
will do the job.
This will prevent the script from creating a new instance of AlexaPi, and a kill
command will now truly kill the alexa program.
sudo rm /run/AlexaPi/monitor_pause
will return to re-spawning.
After a reboot, AlexaPi will be restarted and re-spawned as usual.