Friday, 28 March 2014

Set a Linux server to automatically reboot after a kernel panic

If like me you get a kernel panic on your linux server once a year during the time you are away from internet access then this quick config edit could save you a lot of time and money.

Why not set your server to automatically reboot after a number of seconds after a kernel panic?

It really is easy to do.

Open this file using your favourite editor (nano / vi)

/etc/sysctl.conf
Then add the following line to the end of the file and save.

kernel.panic = 10
I would reboot your server after just to ensure all config changes are loaded.


You now have your server set to reboot 10 seconds after a kernel panic.
 

No comments:

Post a Comment