Subject: Re: avoiding kernel crash dumps
To: None <netbsd-help@netbsd.org>
From: Mike M. Volokhov <mishka@apk.od.ua>
List: netbsd-help
Date: 08/19/2005 16:59:06
On Fri, 19 Aug 2005 15:36:30 +0200
rudolf <netbsd@eq.cz> wrote:

> Hi,
> 
> Mike M. Volokhov wrote:
> > kern.dump_on_panic=0 (avoid crash dumps)
> > ddb.onpanic=0 (doesn't fall into DDB on panic, useful for remote machines)
> 
> is it possible to automatically reboot on panic with NetBSD?

Yep.

AFAIU, panic() should just set few flags and, if there are no any
debuggers, call cpu_reboot() which is very simple at panic mode.

Thus, the stopper for default kernel is DDB only (please see sys/kern/
subr_prf.c for details). You may turn it off with ddb.onpanic=0 sysctl
or using your own kernel with "option DDB_ONPANIC=0" set (or without
DDB at all).

--
Mishka.