Wednesday, May 21, 2008

reboot linux

Context: CentOS 5. Postgresql data directory is locked and cannot reboot the server by $reboot

Solution:

$echo 1 > /proc/sys/kernel/sysrq
$echo b > /proc/sysrq-trigger

Above two commands will reboot the server.

No comments: