[deployment-guide/comm-rel: 219/727] Wrote the Changing the Default Action subsection.
Jaromir Hradilek
jhradile at fedoraproject.org
Tue Oct 19 12:42:50 UTC 2010
commit 80ce70bff69a1b710921db0a3d4864081d4ae8f8
Author: Jaromir Hradilek <jhradile at redhat.com>
Date: Mon Aug 2 15:34:05 2010 +0200
Wrote the Changing the Default Action subsection.
en-US/The_kdump_Crash_Recovery_Service.xml | 58 ++++++++++++++++++++++++++++
1 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/en-US/The_kdump_Crash_Recovery_Service.xml b/en-US/The_kdump_Crash_Recovery_Service.xml
index 1f636a6..19e052e 100644
--- a/en-US/The_kdump_Crash_Recovery_Service.xml
+++ b/en-US/The_kdump_Crash_Recovery_Service.xml
@@ -296,6 +296,64 @@ path /usr/local/cores</screen>
</tgroup>
</table>
</section>
+ <section id="s3-kdump-configuration-cli-action">
+ <title>Changing the Default Action</title>
+ <para>
+ By default, when the kernel crash is captured, the root file system is mounted, and <command>/sbin/init</command> is run. To change this behavior, open the <filename>/etc/kdump.conf</filename> configuration file in a text editor such as <application>vi</application> or <application>nano</application>, remove the hash sign (<quote>#</quote>) from the beginning of the <literal>#default shell</literal> line, and replace the value with a desired action as described in <xref linkend="table-kdump-configuration-cli-action-actions" />. For example:
+ </para>
+ <screen>default halt</screen>
+ <table id="table-kdump-configuration-cli-action-actions">
+ <title>Supported actions</title>
+ <tgroup cols="2">
+ <colspec colwidth="20*" colname="action" colnum="1" />
+ <colspec colwidth="60*" colname="description" colnum="2" />
+ <thead>
+ <row>
+ <entry>
+ Action
+ </entry>
+ <entry>
+ Description
+ </entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>
+ <option>reboot</option>
+ </entry>
+ <entry>
+ Reboot the system, losing the core in the process.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <option>halt</option>
+ </entry>
+ <entry>
+ After attempting to capture a core, halt the system no matter if it succeeded.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <option>poweroff</option>
+ </entry>
+ <entry>
+ Power off the system.
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <option>shell</option>
+ </entry>
+ <entry>
+ Run the <application>msh</application> session from within the initramfs, allowing a user to record the core manually.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
<section id="s3-kdump-configuration-cli-enable">
<title>Enabling the Service</title>
<para>
More information about the docs-commits
mailing list