old-www/LDP/sag/html/inittab.html

237 lines
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Special configuration in
/etc/inittab</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Linux System Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="init"
HREF="init-intro.html"><LINK
REL="PREVIOUS"
TITLE="Run levels"
HREF="run-levels-intro.html"><LINK
REL="NEXT"
TITLE="Booting in single user mode"
HREF="boot-single-user.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux System Administrators Guide: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="run-levels-intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 9. <B
CLASS="COMMAND"
>init</B
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="boot-single-user.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INITTAB"
></A
>9.4. Special configuration in
<TT
CLASS="FILENAME"
>/etc/inittab</TT
></H1
><P
>The <TT
CLASS="FILENAME"
>/etc/inittab</TT
> has some special
features that allow <B
CLASS="COMMAND"
>init</B
> to react to special
circumstances. These special features are marked by special
keywords in the third field. Some examples:
<DIV
CLASS="GLOSSLIST"
><DL
><DT
><B
><TT
CLASS="LITERAL"
>powerwait</TT
></B
></DT
><DD
><P
> Allows <B
CLASS="COMMAND"
>init</B
> to shut the system
down, when the power fails. This assumes the use of
a UPS, and software that watches the UPS and informs
<B
CLASS="COMMAND"
>init</B
> that the power is off.
</P
></DD
><DT
><B
><TT
CLASS="LITERAL"
>ctrlaltdel</TT
></B
></DT
><DD
><P
> Allows <B
CLASS="COMMAND"
>init</B
> to reboot the system, when
the user presses ctrl-alt-del on the console keyboard.
Note that the system administrator can configure the
reaction to ctrl-alt-del to be something else instead,
e.g., to be ignored, if the system is in a public
location. (Or to start <B
CLASS="COMMAND"
>nethack</B
>.)
</P
></DD
><DT
><B
><TT
CLASS="LITERAL"
>sysinit</TT
></B
></DT
><DD
><P
> Command to be run when the system is booted. This command
usually cleans up <TT
CLASS="FILENAME"
>/tmp</TT
>, for example.
</P
></DD
></DL
></DIV
>
The list above is not exhaustive. See your
<TT
CLASS="FILENAME"
>inittab</TT
> manual page for all possibilities,
and for details on how to use the above ones. </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="run-levels-intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="boot-single-user.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Run levels</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="init-intro.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Booting in single user mode</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>