Although famous for its stability but sometimes linux experiencing 'kernel panic'. For servers which located not far away the possible easy and quick solutions is restart the server directly, but for a remote server and controlled remotely this solution will take a long time. We can configure linux to reboot automatically when 'kernel panic' occur by modifying the file /etc/sysctl.conf which is a lot to do with the kernel tweaking parameter.
Add the following line to /etc/sysctl.conf
kernel.panic = 20
This command will make the kernel to reboot the system after 20 seconds 'kernel panic'
occured. By default the kernel will not reboot if the 'kernel panic' occurs, the above
modifications will make the system to reboot.
No comments:
Post a Comment