panic

file: /proc/sys/kernel/panic
variable: kernel.panic
Official reference

The value in this file determines the behaviour of the kernel on a panic:

  • if zero, the kernel will loop forever;
  • if negative, the kernel will reboot immediately;
  • if positive, the kernel will reboot after the corresponding number of seconds.

When you use the software watchdog, the recommended setting is 60.