merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 07 Mar 2010 22:35:34 +0200
changeset 336 dd61a6e88b63
parent 335 46777be3b34b (diff)
parent 333 32fc18cfdf8b (current diff)
child 337 e315ba898bec
merged
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/linux.rst	Sun Mar 07 22:35:34 2010 +0200
@@ -0,0 +1,27 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* SysRq.
+
+  x86: ALT-SysRq-<command key>
+  SPARC: ALT-STOP-<command key>
+  PPC: ALT - Print Screen (or F13) - <command key>
+
+  'b' - reboot
+  'p' - dump the current registers and flags to your console
+  'r' - take control of keyboard back from X
+  'e' - send SIGTERM to all processes, except for init
+  'i' - send SIGKILL to all processes, except for init
+  's' - attempt to sync all mounted filesystems
+  'u' - remount all filesystems read-only
+
+You can put one of such line:
+
+  $ echo 0 > /proc/sys/kernel/sysrq  # disable
+  $ echo 1 > /proc/sys/kernel/sysrq  # enable
+
+to your /etc/rc.local or alternativaly place under /etc/sysctl:
+
+  kernel.sysrq = 1
+
+  http://www.kernel.org/doc/Documentation/sysrq.txt
+                Linux Magic System Request Key Hacks