aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/usage.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/usage.xml')
-rw-r--r--chapter07/usage.xml57
1 files changed, 27 insertions, 30 deletions
diff --git a/chapter07/usage.xml b/chapter07/usage.xml
index 5baede25b..9e6672d3e 100644
--- a/chapter07/usage.xml
+++ b/chapter07/usage.xml
@@ -11,21 +11,19 @@
<primary sortas="a-Bootscripts">Bootscripts</primary>
<secondary>usage</secondary></indexterm>
-<para>Linux uses a special booting facility named SysVinit that is
-based on a concept of <emphasis>run-levels</emphasis>. It can be quite
-different from one system to another, so it cannot be assumed that
-because things worked in &lt;insert distro name&gt;, they should work
-the same in LFS too. LFS has its own way of doing things, but it
-respects generally accepted standards.</para>
-
-<para>SysVinit (which will be referred to as <quote>init</quote> from
-now on) works using a run-levels scheme. There are seven (from 0 to 6)
-run-levels (actually, there are more run-levels, but they are for
-special cases and are generally not used. The init man page describes
-those details), and each one of those corresponds to the actions the
-computer is supposed to perform when it starts up. The default
-run-level is 3. Here are the descriptions of the different run-levels
-as they are implemented:</para>
+<para>Linux uses a special booting facility named SysVinit that is based on a
+concept of <emphasis>run-levels</emphasis>. It can be quite different from one
+system to another, so it cannot be assumed that because things worked in one
+particular Linux distribution, they should work the same in LFS too. LFS has its
+own way of doing things, but it respects generally accepted standards.</para>
+
+<para>SysVinit (which will be referred to as <quote>init</quote> from now on)
+works using a run-levels scheme. There are seven (from 0 to 6) run-levels
+(actually, there are more run-levels, but they are for special cases and are
+generally not used. The init manual page describes those details), and each one
+of those corresponds to the actions the computer is supposed to perform when it
+starts up. The default run-level is 3. Here are the descriptions of the
+different run-levels as they are implemented:</para>
<literallayout>0: halt the computer
1: single-user mode
@@ -37,24 +35,23 @@ as they are implemented:</para>
<para>The command used to change run-levels is <command>init
<replaceable>[runlevel]</replaceable></command>, where
-<replaceable>[runlevel]</replaceable> is the target run-level. For
-example, to reboot the computer, a user would issue the <command>init
-6</command> command. The <command>reboot</command> command is an
-alias for it, as is the <command>halt</command> command an alias for
-<command>init 0</command>.</para>
+<replaceable>[runlevel]</replaceable> is the target run-level. For example, to
+reboot the computer, a user could issue the <command>init 6</command> command,
+which is an alias for the <command>reboot</command> command. Likewise,
+<command>init 0</command> is an alias for the <command>halt</command>
+command.</para>
<para>There are a number of directories under <filename
class="directory">/etc/rc.d</filename> that look like <filename
-class="directory">rc?.d</filename> (where ? is the number of the
-run-level) and <filename class="directory">rcsysinit.d</filename>, all
-containing a number of symbolic links. Some begin with a
-<emphasis>K</emphasis>, the others begin with an
-<emphasis>S</emphasis>, and all of them have two numbers following the
-initial letter. The K means to stop (kill) a service and the S means
-to start a service. The numbers determine the order in which the
-scripts are run, from 00 to 99&mdash;the lower the number the earlier it
-gets executed. When init switches to another run-level, the
-appropriate services get killed and others get started.</para>
+class="directory">rc?.d</filename> (where ? is the number of the run-level) and
+<filename class="directory">rcsysinit.d</filename>, all containing a number of
+symbolic links. Some begin with a <emphasis>K</emphasis>, the others begin with
+an <emphasis>S</emphasis>, and all of them have two numbers following the
+initial letter. The K means to stop (kill) a service and the S means to start a
+service. The numbers determine the order in which the scripts are run, from 00
+to 99&mdash;the lower the number the earlier it gets executed. When
+<command>init</command> switches to another run-level, the appropriate services
+are either started or stopped, depending on the runlevel chosen.</para>
<para>The real scripts are in <filename
class="directory">/etc/rc.d/init.d</filename>. They do the actual