Auto Reboot on Panic?

Norbert Koch NKoch at demig.de
Tue Jul 19 06:36:27 GMT 2005


> I would like the box to dump core and reboot on a panic. I think 
> I have set
> the box up to do this, but on the last panic it didn't reboot. I 
> followed the
> information at http://www.bsdatwork.com/2002/03/29/system_panics_part_1/,
> and I have compiled a kernel with makeoptions DEBUG=-g, options KDB,
> options KDB_UNATTENDED.
>  
> /etc/rc.conf has these lines: dumpdev="/dev/ad6s1b", 
> dumpdir="/usr/local/var/crash". The box has 768M of RAM, ad6s1b has
> at least that much space, and is configured as swap. 
>  
> Can anybody tell me what I have forgotten to do to make the box reboot on
> a panic? Many thanks in advance,
>  
>         Warren

Hello.

>From my understanding of the kernel options:
	options	PANIC_REBOOT_WAIT_TIME=xx	# seconds before reboot
	options	KDB_UNATTENDED			# only required if compiled with kernel debugger
#	options	RESTARTABLE_PANICS		# should not be set

May be, you should also set kern.shutdown.kproc_shutdown_wait
in sysctl.conf to some reasonable time.

Norbert


More information about the freebsd-questions mailing list