diff options
Diffstat (limited to 'chapter07/usage.xml')
-rw-r--r-- | chapter07/usage.xml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/chapter07/usage.xml b/chapter07/usage.xml index a4609108d..e0810c403 100644 --- a/chapter07/usage.xml +++ b/chapter07/usage.xml @@ -25,21 +25,21 @@ different runlevels as they are often implemented:</para> 5: same as 4, it is usually used for GUI login (like X's xdm or KDE's kdm) 6: reboot the computer</literallayout> -<para>The command used to change runlevels is <userinput>init -<runlevel></userinput> where <runlevel> is -the target runlevel. For example, to reboot the computer, a user would issue -the init 6 command. The reboot command is just an alias, as is the halt -command an alias to init 0.</para> - -<para>There are a number of directories under /etc/rc.d that look like -like rc?.d where ? is the number of the runlevel and rcsysinit.d which -contain a number of symbolic links. Some begin with a K, the others -begin with an S, 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; the lower the number the sooner it gets executed. When init -switches to another runlevel, the appropriate services get killed and -others get started.</para> +<para>The command used to change runlevels is <command>init +<runlevel></command> where <runlevel> is the target runlevel. For +example, to reboot the computer, a user would issue the <command>init +6</command> command. The <command>reboot</command> command is just an alias for +it, as is the <command>halt</command> command an alias for <command>init +0</command>.</para> + +<para>There are a number of directories under <filename>/etc/rc.d</filename> +that look like like rc?.d where ? is the number of the runlevel and rcsysinit.d +which contain a number of symbolic links. Some begin with a K, the others begin +with an S, 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; the lower the +number the sooner it gets executed. When init switches to another runlevel, the +appropriate services get killed and others get started.</para> <para>The real scripts are in /etc/rc.d/init.d. They do all the work, and the symlinks all point to them. Killing links and starting links point to |