In some situations you cant reboot your server with “reboot” or “init 6” commands. Try this magic solution:
System will just make a hard reset as if you pressed a reset button, without running any shutdown scripts or umounting of your filesystem.
First enable SysRq:
1 | echo 1 > /proc/sys/kernel/sysrq |
Now your can send magic commands, example reboot:
1 | echo b > /proc/sysrq-trigger |
Hard Shutdown of your system immediately (Like Power Off button):
1 | echo o > /proc/sysrq-trigger |
Leave a Reply