aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/sysvinit.xml
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-17 21:55:01 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-05-17 21:55:01 +0000
commitc6cb3aa2f176d65a5ebe77e7da82e20946188a98 (patch)
tree3167e42f874b5784307f02acc61a0570f31ccb38 /chapter06/sysvinit.xml
parent01b2724c70a6addd4e2190649c14a79be3a85090 (diff)
HEAD: Retagged the Contents of ... sections.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3621 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/sysvinit.xml')
-rw-r--r--chapter06/sysvinit.xml141
1 files changed, 105 insertions, 36 deletions
diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml
index 8c3cb6c8e..31095948d 100644
--- a/chapter06/sysvinit.xml
+++ b/chapter06/sysvinit.xml
@@ -103,83 +103,152 @@ speakers.</para>
</sect2>
-<sect2 id="contents-sysvinit"><title>Contents of Sysvinit</title>
-
-<para><emphasis>Installed programs</emphasis>: halt, init, killall5, last,
-lastb (link to last), mesg, pidof (link to killall5), poweroff (link to halt),
-reboot (link to halt), runlevel, shutdown, sulogin, telinit (link to init),
-utmpdump and wall</para>
-
-</sect2>
+<sect2 id="contents-sysvinit" role="content"><title>Contents of Sysvinit</title>
+<segmentedlist>
+<segtitle>Installed programs</segtitle>
+<seglistitem><seg>halt, init, killall5, last, lastb (link to last), mesg, pidof (link to
+killall5), poweroff (link to halt), reboot (link to halt), runlevel, shutdown, sulogin, telinit
+(link to init), utmpdump and wall</seg></seglistitem>
+</segmentedlist>
-<sect2><title>Short descriptions</title>
+<variablelist><title>Short descriptions</title>
+<varlistentry>
+<term id="halt"><command>halt</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit halt"><primary sortas="b-halt">halt</primary></indexterm>
-<para id="halt"><command>halt</command> normally invokes shutdown with the -h flag,
+<para>normally invokes shutdown with the -h flag,
except when already in run-level 0, then it tells the kernel to halt the system.
But first it notes in the file <filename>/var/log/wtmp</filename> that the
system is being brought down.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="init"><command>init</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit init"><primary sortas="b-init">init</primary></indexterm>
-<para id="init"><command>init</command> is the mother of all processes. It reads its
+<para>is the mother of all processes. It reads its
commands from <filename>/etc/inittab</filename>, which normally tell it which
scripts to run for which run-level, and how many gettys to spawn.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="killall5"><command>killall5</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit killall5"><primary sortas="b-killall5">killall5</primary></indexterm>
-<para id="killall5"><command>killall5</command> sends a signal to all processes, except
-the processes in its own session -- so it won't kill the shell running the
-script that called it.</para>
-
+<para>sends a signal to all processes, except the processes in its own session --
+so it won't kill the shell running the script that called it.</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term id="last"><command>last</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit last"><primary sortas="b-last">last</primary></indexterm>
-<para id="last"><command>last</command> shows which users last logged in (and out),
+<para>shows which users last logged in (and out),
searching back through the file <filename>/var/log/wtmp</filename>. It can
also show system boots and shutdowns, and run-level changes.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="lastb"><command>lastb</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit lastb"><primary sortas="b-lastb">lastb</primary></indexterm>
-<para id="lastb"><command>lastb</command> shows the failed login attempts, as logged
-in <filename>/var/log/btmp</filename>.</para>
-
+<para>shows the failed login attempts, as logged in
+<filename>/var/log/btmp</filename>.</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term id="mesg"><command>mesg</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit mesg"><primary sortas="b-mesg">mesg</primary></indexterm>
-<para id="mesg"><command>mesg</command> controls whether other users can send
+<para>controls whether other users can send
messages to the current user's terminal.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="pidof"><command>pidof</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit pidof"><primary sortas="b-pidof">pidof</primary></indexterm>
-<para id="pidof"><command>pidof</command> reports the PIDs of the given programs.</para>
+<para>reports the PIDs of the given programs.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="poweroff"><command>poweroff</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit poweroff"><primary sortas="b-poweroff">poweroff</primary></indexterm>
-<para id="poweroff"><command>poweroff</command> tells the kernel to halt the system and
+<para>tells the kernel to halt the system and
switch off the computer. But see halt.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="reboot"><command>reboot</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit reboot"><primary sortas="b-reboot">reboot</primary></indexterm>
-<para id="reboot"><command>reboot</command> tells the kernel to reboot the system.
-But see halt.</para>
+<para>tells the kernel to reboot the system. But see halt.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="runlevel"><command>runlevel</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit runlevel"><primary sortas="b-runlevel">runlevel</primary></indexterm>
-<para id="runlevel"><command>runlevel</command> reports the previous and the current
-run-level, as noted in the last run-level record in
-<filename>/var/run/utmp</filename>.</para>
-
+<para>reports the previous and the current run-level, as noted in the last run-level
+record in <filename>/var/run/utmp</filename>.</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term id="shutdown"><command>shutdown</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit shutdown"><primary sortas="b-shutdown">shutdown</primary></indexterm>
-<para id="shutdown"><command>shutdown</command> brings the system down in a secure way,
+<para>brings the system down in a secure way,
signaling all processes and notifying all logged-in users.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="sulogin"><command>sulogin</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit sulogin"><primary sortas="b-sulogin">sulogin</primary></indexterm>
-<para id="sulogin"><command>sulogin</command> allows the superuser to log in. It is
+<para>allows the superuser to log in. It is
normally invoked by init when the system goes into single user mode.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="telinit"><command>telinit</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit telinit"><primary sortas="b-telinit">telinit</primary></indexterm>
-<para id="telinit"><command>telinit</command> tells init which run-level to enter.</para>
+<para>tells init which run-level to enter.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="utmpdump"><command>utmpdump</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit utmpdump"><primary sortas="b-utmpdump">utmpdump</primary></indexterm>
-<para id="utmpdump"><command>utmpdump</command> displays the content of the given login
-file in a friendlier format.</para>
+<para>displays the content of the given login file in a friendlier format.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term id="wall"><command>wall</command></term>
+<listitem>
<indexterm zone="ch-system-sysvinit wall"><primary sortas="b-wall">wall</primary></indexterm>
-<para id="wall"><command>wall</command> writes a message to all logged-in users.</para>
+<para>writes a message to all logged-in users.</para>
+</listitem>
+</varlistentry>
+</variablelist>
</sect2>
-
-
</sect1>