om-watchdog: Stop om-watchdog via procd before rebooting
authorJohn Crispin <john@openwrt.org>
Thu, 3 Mar 2016 20:24:33 +0000 (20:24 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 3 Mar 2016 20:24:33 +0000 (20:24 +0000)
commit74422f9398fc76e2f5f43db0a5ee6b44eb450688
treee97184221ccae740bf9126ee410499988f9111e4
parent86baadf46e3d1df7838e1891783d8a553bf86316
om-watchdog: Stop om-watchdog via procd before rebooting

It was noticed that the system can hang during the reboot before the kernel
actually triggers the system reset and before all processes are stopped. The
watchdog didn't automatically restart the system because the om-watchdog
process was still running and triggering the hardware watchdog.

Instead the system should stop the watchdog during the shutdown to get the
benefit of an hardware reset in case of an software related problem. This stop
can be done quite easily with procd because it keeps track of its started
processes.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
SVN-Revision: 48889
package/kernel/om-watchdog/files/om-watchdog.init