|
@@ -31,23 +31,19 @@ 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>The /etc/init.d/rcS script is run at every startup of the computer,
|
|
|
-before any runlevel is executed and runs the scripts listed in
|
|
|
-/etc/rcS.d</para>
|
|
|
-
|
|
|
-<para>There are a number of directories under /etc that look like like rc?.d
|
|
|
-where ? is the number of the runlevel and rcS.d which contain a number of
|
|
|
-symbolic links. Some begin with an K, the others begin with an S, and all
|
|
|
-of them have three 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 000 to 999; 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/init.d. They do all the work, and the
|
|
|
+<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 an K, the others
|
|
|
+begin with an S, and all of them have three 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
|
|
|
-the same script in /etc/init.d. That's because the scripts can be
|
|
|
+the same script in /etc/rc.d/init.d. That's because the scripts can be
|
|
|
called with different parameters like start, stop, restart, reload,
|
|
|
status. When a K link is encountered, the appropriate script is run with
|
|
|
the stop argument. When a S link is encountered, the appropriate script
|