Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2024 13:05:37 -0400
From:      mike tancsa <mike@sentex.net>
To:        Stephane Rochoy <stephane.rochoy@stormshield.eu>
Cc:        Chris6 via freebsd-hardware <freebsd-hardware@freebsd.org>
Subject:   Re: watchdog timer programming
Message-ID:  <be51c81f-11c7-4f90-9df7-9635ec1df2c4@sentex.net>
In-Reply-To: <864j5xehes.fsf@cthulhu.stephaner.labo.int>
References:  <3065debc-8d4f-4487-abbb-c9408810cea6@sentex.net> <86plotbk5b.fsf@cthulhu.stephaner.labo.int> <9008b389-ab06-401d-9a95-84f849ca602a@sentex.net> <86plosdv48.fsf@cthulhu.stephaner.labo.int> <78e9461c-b93d-403f-b3a1-3568548b9283@sentex.net> <86h6a1egcs.fsf@cthulhu.stephaner.labo.int> <c4343727-606c-409a-8618-9da732fc3059@sentex.net> <868qvddwph.fsf@cthulhu.stephaner.labo.int> <2d850ccc-2e90-4a1a-927c-045d4750d570@sentex.net> <864j5xehes.fsf@cthulhu.stephaner.labo.int>

next in thread | previous in thread | raw e-mail | index | archive | help

On 9/30/2024 3:18 AM, Stephane Rochoy wrote:
>
> mike tancsa <mike@sentex.net> writes:
>
>> Do you know off hand how to set the system to just reboot ? The ddb man
>> page seems to imply I need options DDB as well, which is not in GENERIC
>> in order to set script actions.
>
> I would try the following:
>
>  ddb script kdb.enter.default=reset
>
If I build a custom kernel then that will work. But with GENERIC (I am 
tracking project via freebsd-update), it fails

# ddb script kdb.enter.default=reset
ddb: sysctl: debug.ddb.scripting.scripts: No such file or directory

With a customer kernel, adding

options DDB

it works perfectly.

Is there any way to get this to work without having ddb custom compiled in ?

     ---Mike


> Regards,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?be51c81f-11c7-4f90-9df7-9635ec1df2c4>