I always have
/proc/sys/kernel/panic set up to
0. Looking at description of this option in kernel.org we can see:
The value in this file represents the number of seconds the kernel waits before rebooting on a panic. When you use the software watchdog, the recommended setting is 60.
From here one can conclude that
0 is 0 seconds waiting before reboot - immediate reboot.
proc MAN page states the following:
This file gives read/write access to the kernel variable panic_timeout. If this is zero, the kernel will loop on a panic; if nonzero, it indicates that the kernel should autore‐ boot after this number of seconds. When you use the software watchdog device driver, the recommended setting is 60.
0 means antipodal thing - never reboot.
So why such a trusted source gives such a misleading info? Or maybe the MAN page is inaccurate?
P.S. just from a hint in
panic_on_oops section (if you happen to read this) you can guess that MAN page is right. Or if you are technically skilled enough to investigate something in kernel source code.