You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
René Kliment edited this page Jan 15, 2017
·
1 revision
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.
Systemd
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.
Classic init scripts
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
Temporary setting
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.