[rfc] [patch] do not stop watchdog on shutdown

Allan Jude freebsd at allanjude.com
Tue Dec 17 21:31:39 UTC 2013


On 2013-12-17 16:28, Aleksandr Rybalko wrote:
> On Tue, 17 Dec 2013 10:53:02 -0800
> Maksim Yevmenkin <maksim.yevmenkin at gmail.com> wrote:
>
>> hello,
> Hi Maksim!
>
>> would anyone object to this patch?
> It is good idea, but sometimes shutdown sequence longer than some H/W
> watchdogs even support.
> I have one board which can do only 20sec maximum time.
>
>> max
>>
>> Index: src/etc/rc.d/watchdogd
>> ===================================================================
>> --- src/etc/rc.d/watchdogd      (revision 2999)
>> +++ src/etc/rc.d/watchdogd      (working copy)
>> @@ -39,4 +39,7 @@
>>  pidfile="/var/run/${name}.pid"
>>
>>  load_rc_config $name
>> +
>> +sig_stop="${watchdogd_sig_stop:-TERM}"
>> +
>>  run_rc_command "$1"
>> _______________________________________________
>> freebsd-current at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to
>> "freebsd-current-unsubscribe at freebsd.org"
>

I've been seeing an issue where sometimes my system seems to hang after
the shutdown. where not stopping the watchdog might help. I wonder if it
would be best to make some kind of rc.conf variable to allow the user to
opt for one or the other, keeping the current behaviour for POLA.

-- 
Allan Jude


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20131217/0c5e1087/attachment.sig>


More information about the freebsd-current mailing list