aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/sysvinit.xml
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-06-19 13:39:28 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-06-19 13:39:28 +0000
commit8ad79807a3c97e18a90319c9b91018b0be2bbb3c (patch)
tree2c81e99ccc07955e04e833dd91650e7a3385cbe5 /chapter06/sysvinit.xml
parentef57e3bcf1a7fb7eda2717fc2334fe599da01888 (diff)
Tags corrections
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3812 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/sysvinit.xml')
-rw-r--r--chapter06/sysvinit.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml
index f39213f2e..3b487dbc6 100644
--- a/chapter06/sysvinit.xml
+++ b/chapter06/sysvinit.xml
@@ -28,10 +28,12 @@ running, and shutdown of your system.</para>
<sect2 role="installation">
<title>Installation of Sysvinit</title>
-<para>Sysvinit &sysvinit-version; contains a "buffer overflow" bug.
+<para>Sysvinit &sysvinit-version; contains a <quote>buffer overflow</quote> bug.
Under some conditions, it clobbers the
values of environment variables. Fix that:</para>
+
<screen><userinput>patch -Np1 -i ../sysvinit-&sysvinit-version;-proclen-1.patch</userinput></screen>
+
<para>When run-levels are changed (for example, when halting the system),
<command>init</command> sends termination signals to those processes that
<command>init</command> itself started and that shouldn't be running in the new
@@ -64,7 +66,7 @@ misinterpretation, you can modify the source so that these messages read like
<para>Create a new <filename>/etc/inittab</filename> file by running the
following:</para>
-<screen><userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"</userinput>
+<screen><userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"
# Begin /etc/inittab
id:3:initdefault:
@@ -91,9 +93,9 @@ su:S016:once:/sbin/sulogin
6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
# End /etc/inittab
-<userinput>EOF</userinput></screen>
+EOF</userinput></screen>
-<para> The -I '\033(K' switch tells agetty to send this escape sequence to
+<para> The <parameter>-I '\033(K'</parameter> switch tells <command>agetty</command> to send this escape sequence to
the terminal before doing anything else. This escape sequence switches the
console character set to a user-defined one, which can be modified by
running the <command>setfont</command> program.
@@ -121,7 +123,7 @@ killall5), poweroff (link to halt), reboot (link to halt), runlevel, shutdown, s
<term><command>halt</command></term>
<listitem>
<indexterm zone="ch-system-sysvinit halt"><primary sortas="b-halt">halt</primary></indexterm>
-<para>normally invokes shutdown with the -h flag,
+<para>normally invokes <command>shutdown</command> with the <parameter>-h</parameter> 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>
@@ -188,7 +190,7 @@ messages to the current user's terminal.</para>
<listitem>
<indexterm zone="ch-system-sysvinit poweroff"><primary sortas="b-poweroff">poweroff</primary></indexterm>
<para>tells the kernel to halt the system and
-switch off the computer. But see halt.</para>
+switch off the computer. But see <command>halt</command>.</para>
</listitem>
</varlistentry>
@@ -196,7 +198,7 @@ switch off the computer. But see halt.</para>
<term><command>reboot</command></term>
<listitem>
<indexterm zone="ch-system-sysvinit reboot"><primary sortas="b-reboot">reboot</primary></indexterm>
-<para>tells the kernel to reboot the system. But see halt.</para>
+<para>tells the kernel to reboot the system. But see <command>halt</command>.</para>
</listitem>
</varlistentry>
@@ -223,7 +225,7 @@ signaling all processes and notifying all logged-in users.</para>
<listitem>
<indexterm zone="ch-system-sysvinit sulogin"><primary sortas="b-sulogin">sulogin</primary></indexterm>
<para>allows the superuser to log in. It is
-normally invoked by init when the system goes into single user mode.</para>
+normally invoked by <command>init</command> when the system goes into single user mode.</para>
</listitem>
</varlistentry>
@@ -231,7 +233,7 @@ normally invoked by init when the system goes into single user mode.</para>
<term><command>telinit</command></term>
<listitem>
<indexterm zone="ch-system-sysvinit telinit"><primary sortas="b-telinit">telinit</primary></indexterm>
-<para>tells init which run-level to enter.</para>
+<para>tells <command>init</command> which run-level to enter.</para>
</listitem>
</varlistentry>