摘要 : How to reboot Linux automatically on Kernel Panic

我都不知道原來panic可以自動重新開機,我以為一定要watchdog之類的ㄟ

原來這麼簡單 但是 怎麼說 試試看吧 更希望不要有panic阿

編輯 /etc/sysctl.conf

kernel.panic = 20
kernel.sysrq = 1

然後執行

sysctl -p /etc/sysctl.conf

最後 常用的 sysrq 快速鍵也要記一下

unRaw (take control of keyboard back from X), tErminate (send SIGTERM to all processes, allowing them to terminate gracefully), kIll (send SIGKILL to all processes, forcing them to terminate immediately), Sync (flush data to disk), Unmount (remount all filesystems read-only), reBoot.

原文:http://linuxaria.com/howto/how-to-reboot-linux-automatically-on-kernel-panic

Comments