# uname -sr
# sysctl kern.panic_reboot_wait_time
According to source code (sys/kern/kern_shutdown.c), FreeBSD should not reboot after a panic.
However it does, without displaying any message.
I also tried setting this sysctl to some seconds, same behavior.
I tried some debugging, kernel enter poweroff_wait(), but does not seem to enter shutdown_*(), where it should finally wait in shutdown_panic().
I would like my systems not to reboot after a panic, so that I can get the stack trace on the console if dump failed, thus allowing me to know what happened.
Thank you !