Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 2010 17:40:49 -0400 (EDT)
From:      Benjamin Kaduk <kaduk@MIT.EDU>
To:        David Rhodus <sdrhodus@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: Auto doadump()
Message-ID:  <alpine.GSO.1.10.1006031731410.29136@multics.mit.edu>
In-Reply-To: <AANLkTilKLPfEfoSfjaXEO4s7L0o5KNHNad7gnFFM6Bjo@mail.gmail.com>
References:  <AANLkTilKLPfEfoSfjaXEO4s7L0o5KNHNad7gnFFM6Bjo@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Jun 2010, David Rhodus wrote:

> Is there a rc.conf variable to automatically save core on a panic and reboot ?
> Setting dumpdev="AUTO"  doesn't seem to do the trick.

dumpdev merely controls which swap device the dump gets written to.
You probably want to either compile your kernel with KDB_UNATTENDED or set 
the debug.debugger_on_panic sysctl to 0.
(I run my systems to drop into KDB interactively, but reading 
kern/kern_shutdown.c seems to indicate that this will do what you want.)

-Ben Kaduk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1006031731410.29136>