Bug 223282 - [kern.panic_reboot_wait_time] Does not work, immediate reboot
Summary: [kern.panic_reboot_wait_time] Does not work, immediate reboot
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-27 16:41 UTC by Ben RUBSON
Modified: 2017-10-27 16:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben RUBSON 2017-10-27 16:41:32 UTC
Hi,

# uname -sr
FreeBSD 11.0-RELEASE-p13

# sysctl kern.panic_reboot_wait_time
kern.panic_reboot_wait_time: -1

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 !

Ben