# Linux Kernel Module Cheat

##### 17.6.1.4. Reboot on panic

Make the kernel reboot after n seconds after panic:

    echo 1 > /proc/sys/kernel/panic

Can also be controlled with the `panic=` kernel boot parameter.

`0` to disable, `-1` to reboot immediately.

Bibliography:

- https://github.com/torvalds/linux/blob/v4.17/Documentation/admin-guide/kernel-parameters.txt#L2931

- https://unix.stackexchange.com/questions/29567/how-to-configure-the-linux-kernel-to-reboot-on-panic/29569#29569