We are developing a product which will be remotely located; therefore, we require a robust method to recover kernel panics, a job usually performed by a software function which periodically “kicks” a watchdog timer hardware element so that it does not automatically perform a system reboot.
We propose to use the capabilities of ‘systemd’ to automatically perform this watchdog function. According to the ‘systemd’ documentation found here, setting ‘RuntimeWatchdogSec’ in ‘systemd.conf’ (inside /etc/systemd/) to a non-zero value, say 20 (sec), will cause the i.MX6DL to enter the shutdown / reset state if the kernel stops running for at least 10 seconds.
- Is our understanding of this ‘systemd’ function correct?
- Has anyone else implemented a system-level watchdog timer using ‘systemd’?
- In order to test this functionality, what is the best way to “kill” the kernel?
- Can anyone provide implementation DOs or DON’Ts?