Digi Embedded Yocto includes a system monitor service that checks the system’s functionality and reacts to malfunction.
You can customize it for individual applications:
-
The system monitor periodically executes in order all scripts located at /etc/system-monitor/check.d. The scripts are intended to check that the device is functional. For example a dedicated network device might check whether network connectivity is available.
-
If any of the system checks fail, the system monitor executes in order all scripts located at /etc/system-monitor/recover-action.d. These scripts are intended to recover the system’s functionality, or for example even trigger a reboot as last resort.
The system monitor is disabled by default. To enable the system monitor on a running system, do:
~# systemctl enable system-monitor