Re: watchdog timer programming

From: Stephane Rochoy <stephane.rochoy_at_stormshield.eu>
Date: Fri, 27 Sep 2024 06:09:31 UTC
mike tancsa <mike@sentex.net> writes:

> On 9/25/2024 3:13 AM, Stephane Rochoy wrote:
>>>>>
>>>>> Any idea how to get this hardware working ?
>>>>
>>>> Do you know if, at least, the pre-timeout is working?
>>>
>>>     How do I check that ?
>>
>> Using --pretimeout and --pretimeout-action. See watchdogd(8) 
>> for
>> more details.
>>
> Reverting to the code thats in the tree, I started it up with
>
> watchdogd --pretimeout 10 --pretimeout-action log -t 15
>
> Doesnt seem to work or at least it doesnt make sense to me. 
> After I
> start that up, I see in the logs about 25 seconds after it 
> starts, but
> not always.
>
> Sep 26 11:31:20 mpki2024 kernel: watchdog pre-timeout, 
> WD_SOFT_LOG
> Sep 26 11:31:20 mpki2024 kernel: Sep 26 11:31:20 pki2024 kernel:
> watchdog pre-timeout, WD_SOFT_LOG
>
> and then doing a kill -9 does nothing :(

AFAIK, the pre-timeout should trigger reliably. Weird.
-- 
Stéphane Rochoy
O: Stormshield