From 7ebcd28ac325d6d80625c603beb259ddcab3b949 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 21 Mar 2022 15:04:04 -0500 Subject: Clarify SysV run levels. Update the meaning of run level 2. Add some clarifying remarks about run levels 0 and 6 (halt and reboot). --- chapter09/usage.xml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'chapter09/usage.xml') diff --git a/chapter09/usage.xml b/chapter09/usage.xml index 6f8d7a03f..b249096c0 100644 --- a/chapter09/usage.xml +++ b/chapter09/usage.xml @@ -35,12 +35,22 @@ 0: halt the computer 1: single-user mode -2: multi-user mode without networking +2: reserved for customization, otherwise does the same as 3 3: multi-user mode with networking 4: reserved for customization, otherwise does the same as 3 5: same as 4, it is usually used for GUI login (like X's xdm or KDE's kdm) 6: reboot the computer + + + Classically, run level 2 above was defined as + "multi-user mode without networking", but this was only the case + many years ago when multiple users could log into a system connected via + serial ports. In today's environment it makes no sense and + we designate it now as "reserved". + + + @@ -127,7 +137,7 @@ EOF There are a number of directories under /etc/rc.d that look like rc?.d (where ? is the number of the run-level) and - rcsysinit.d, all containing a number of + rcS.d, all containing 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 @@ -155,7 +165,11 @@ EOF to be started. They will be called with the parameter stop to stop something. The logic behind this is that when a user is going to reboot or halt the system, nothing - needs to be started. The system only needs to be stopped. + needs to be started, but the order of shutdown needs to be controlled. + For these run levels, all K prefixed scripts will be + run before any S prefixed scripts are run with the + stop parameter. + These are descriptions of what the arguments make the scripts do: -- cgit v1.2.3-54-g00ecf