You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

"reboot" or "shutdown" commands are executed daemons are gracefully stopped and storage volumes unmounted. This is usually accomplished via scripts in the /etc/init.d directory which will wait for each daemon to shut down gracefully before proceeding on to the next one. That environment triggers dead-lock situation when one of the daemons are not closing gracefully. To force the kernel to reboot the system will be making use of the magic SysRq key. 




The magic_SysRq_key provides a means to send low level instructions directly to the kernel via the /proc virtual file system.

To enable the use of  the magic SysRq option type the following at the command prompt:


#!/bin/bash
sudo echo 1 > /proc/sys/kernel/sysrq
sudo echo b > /proc/sysrq-trigger
  • No labels