[CentOS] How to use watchdog daemon with hardware watchdog driver interface?

Wed Sep 18 14:01:00 UTC 2013
Steve Clark <sclark at netwolves.com>

On 09/18/2013 07:20 AM, Alexander Farber wrote:
> Hello Steve,
>
> yes, I have that device:
>
> # ll /dev/watchdog
> crw-rw---- 1 root root 10, 130 Sep 17 23:21 /dev/watchdog
>
> #  ps uawwx|grep w[a]tchdog
> root         6  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/0]
> root        10  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/1]
> root        14  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/2]
> root        18  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/3]
> root        22  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/4]
> root        26  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/5]
> root        30  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/6]
> root        34  0.0  0.0      0     0 ?        S    Sep17   0:00 [watchdog/7]
> root     12175  0.0  0.0   6236  2140 ?        SLs  11:11   0:00
> /usr/sbin/watchdog -v
>
> # grep -v ^# /etc/watchdog.conf
> ping                    = 144.76.XXX.XXX
> admin                   = root
> logtick                 = 360
> realtime                = yes
> priority                = 1
>
> So you think killing with -9 will indicate
> if I have hardware watchdog or just software?
>
> Regards
> Alex

the
root 6 0.0 0.0 0 0 ? S Sep17 0:00 [watchdog/0]
I believe are related to the cpus.

When you service watchdog start
you will see a process like below.
That is what you want to kill -9

2094 ?        SLs    0:13 /usr/sbin/watchdog

That will preventing it from telling the kernel to reset the
watchdog timer which will expire and should reboot you
system.

If you don't use -9 the watchdog process will gracefully
stop and tell the kernel to turn of the watchdog timer so it won't
expire causing the reboot.

Anyway that it how it works on my system.

> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com