You need to put some monitoring in place:
1 Add a simple top command to run every minute via cron. (If cron isn’t there already, install it from the app store or through apt-get.) Run crontab -e
to edit the cron table then add the following line:
* * * * * /usr/bin/top -b -n1 | /usr/bin/head -5 >> /home/osmc/monitor.out 2>&1
2 Write your system journal to “disk”. (It’s normally just kept in memory.) To do this run:
sudo mkdir /var/log/journal
sudo systemctl restart systemd-journald
(The system journals can become difficult to read because the Vero4K doesn’t have a battery-backed clock, but in the event of a system crash, we should be able to figure out the latest date/time.)