om-watchdog: Stop om-watchdog via procd before rebooting
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Mar 2016 20:24:33 +0000 (20:24 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Mar 2016 20:24:33 +0000 (20:24 +0000)
commitdee324091112378ae8a17c54f3d9fb5a56008f86
treee97184221ccae740bf9126ee410499988f9111e4
parent9b371e874c545241b3a8bb8bde6b5534ed5e33f7
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48889 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/kernel/om-watchdog/files/om-watchdog.init