This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim1s:applications:watchdog [2022/07/17 21:46] nick |
products:sbc:vim1s:applications:watchdog [2022/08/21 23:37] (current) frank [Test Watchdog] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== VIM1S Watchdog ====== | ====== VIM1S Watchdog ====== | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | This page introduces the external Watchdog. You will learn how to enable the watchdog and test it. | ||
| + | |||
| + | ===== Enable Watchdog ===== | ||
| + | |||
| + | Watchdog is disabled by default, use the commands below to enable it. | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | ``` | ||
| + | |||
| + | Check watchdog status: | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | ● external-watchdog.service - External Watchdog | ||
| + | | ||
| + | | ||
| + | Main PID: 2766 (external-watchd) | ||
| + | Tasks: 2 (limit: 1592) | ||
| + | | ||
| + | CPU: 1.176s | ||
| + | | ||
| + | | ||
| + | | ||
| + | ``` | ||
| + | |||
| + | ===== Test Watchdog ===== | ||
| + | |||
| + | You can also kill the watchdog daemon to prevent an automatic restart. | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | root 2766 0.4 0.1 | ||
| + | ``` | ||
| + | Process ID with watchdog daemon is '' | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | ``` | ||
| + | |||
| + | the system will automatically reboot. | ||
| + | |||
| + | ===== Disable Watchdog ===== | ||
| + | |||
| + | ```shell | ||
| + | khadas@Khadas: | ||
| + | ``` | ||