aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/sysvinit.xml
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-12-21 19:38:32 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-12-21 19:38:32 +0000
commit3f0c882398e626cd92503b1bd964a32e89f818dc (patch)
tree73e2935fe138615f4ec2d430fb7fbf6ae8fa9a80 /chapter06/sysvinit.xml
parentaaa3260c039e40d68545922b64199b039da6af7b (diff)
Removed the text in chapter 06.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4446 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/sysvinit.xml')
-rw-r--r--chapter06/sysvinit.xml172
1 files changed, 6 insertions, 166 deletions
diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml
index 47d078778..8148dc672 100644
--- a/chapter06/sysvinit.xml
+++ b/chapter06/sysvinit.xml
@@ -28,13 +28,7 @@ running, and shutdown of your system.</para>
<sect2 role="installation">
<title>Installation of Sysvinit</title>
-<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
-run-level. While doing this, <command>init</command> outputs messages like
-<quote>Sending processes the TERM signal</quote> which seem to imply that it is sending these signals to all currently running processes. To avoid this
-misinterpretation, you can modify the source so that these messages read like
-<quote>Sending processes started by init the TERM signal</quote> instead:</para>
+<para>Issue a sed sustitution:</para>
<screen><userinput>sed -i 's@Sending processes@&amp; started by init@g' \
src/init.c</userinput></screen>
@@ -51,14 +45,8 @@ misinterpretation, you can modify the source so that these messages read like
<sect2 id="conf-sysvinit" role="configuration"><title>Configuring Sysvinit</title>
-<indexterm zone="conf-sysvinit">
-<primary sortas="a-Sysvinit">Sysvinit</primary>
-<secondary>configuring</secondary></indexterm>
-<indexterm zone="conf-sysvinit"><primary sortas="e-/etc/inittab">/etc/inittab</primary></indexterm>
-
-<para>Create a new <filename>/etc/inittab</filename> file by running the
-following:</para>
+<para>Create a <filename>/etc/inittab</filename> file:</para>
<screen><userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"
# Begin /etc/inittab
@@ -89,172 +77,24 @@ su:S016:once:/sbin/sulogin
# End /etc/inittab
EOF</userinput></screen>
-<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.
-Actually, the <command>console</command> initscript from the LFS-Bootscripts
-package calls the <command>setfont</command> program during system
-startup. Sending this escape sequence is necessary for
-people who use non-ISO-8859-1 screen font, but does not hurt native English
-speakers.</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>
-
-<variablelist><title>Short descriptions</title>
-
-<varlistentry id="halt">
-<term><command>halt</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit halt"><primary sortas="b-halt">halt</primary></indexterm>
-<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>
-</listitem>
-</varlistentry>
-
-<varlistentry id="init">
-<term><command>init</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit init"><primary sortas="b-init">init</primary></indexterm>
-<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 id="killall5">
-<term><command>killall5</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit killall5"><primary sortas="b-killall5">killall5</primary></indexterm>
-<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 id="last">
-<term><command>last</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit last"><primary sortas="b-last">last</primary></indexterm>
-<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 id="lastb">
-<term><command>lastb</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit lastb"><primary sortas="b-lastb">lastb</primary></indexterm>
-<para>shows the failed login attempts, as logged in
-<filename>/var/log/btmp</filename>.</para>
-</listitem>
-</varlistentry>
+<para>See testing</para>
-<varlistentry id="mesg">
-<term><command>mesg</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit mesg"><primary sortas="b-mesg">mesg</primary></indexterm>
-<para>controls whether other users can send
-messages to the current user's terminal.</para>
-</listitem>
-</varlistentry>
+<!-- This should be added to testing:
<varlistentry id="mountpoint">
<term><command>mountpoint</command></term>
<listitem>
+<para>Checks if the directory is a mountpoint</para>
<indexterm zone="ch-system-sysvinit mountpoint"><primary sortas="b-mountpoint">mountpoint</primary></indexterm>
-<para>checks if the directory is a mountpoint.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="pidof">
-<term><command>pidof</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit pidof"><primary sortas="b-pidof">pidof</primary></indexterm>
-<para>reports the PIDs of the given programs.</para>
</listitem>
</varlistentry>
-<varlistentry id="poweroff">
-<term><command>poweroff</command></term>
-<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 <command>halt</command>.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="reboot">
-<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 <command>halt</command>.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="runlevel">
-<term><command>runlevel</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit runlevel"><primary sortas="b-runlevel">runlevel</primary></indexterm>
-<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 id="shutdown">
-<term><command>shutdown</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit shutdown"><primary sortas="b-shutdown">shutdown</primary></indexterm>
-<para>brings the system down in a secure way,
-signaling all processes and notifying all logged-in users.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="sulogin">
-<term><command>sulogin</command></term>
-<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 <command>init</command> when the system goes into single user mode.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="telinit">
-<term><command>telinit</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit telinit"><primary sortas="b-telinit">telinit</primary></indexterm>
-<para>tells <command>init</command> which run-level to enter.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="utmpdump">
-<term><command>utmpdump</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit utmpdump"><primary sortas="b-utmpdump">utmpdump</primary></indexterm>
-<para>displays the content of the given login file in a friendlier format.</para>
-</listitem>
-</varlistentry>
-
-<varlistentry id="wall">
-<term><command>wall</command></term>
-<listitem>
-<indexterm zone="ch-system-sysvinit wall"><primary sortas="b-wall">wall</primary></indexterm>
-<para>writes a message to all logged-in users.</para>
-</listitem>
-</varlistentry>
-</variablelist>
+-->
</sect2>