From fa914e596245dfff0d0424b3bdffd6f762b40e19 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 29 Aug 2001 19:50:53 +0000 Subject: text updates git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1114 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/usage.xml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'chapter07/usage.xml') diff --git a/chapter07/usage.xml b/chapter07/usage.xml index 1e8c944f1..c695004c5 100644 --- a/chapter07/usage.xml +++ b/chapter07/usage.xml @@ -35,25 +35,30 @@ before any runlevel is executed and runs the scripts listed in /etc/rcS.d There are a number of directories under /etc that look like like rc?.d -where ? is the number of the runlevel and rcS.d. A user might take a look -at one of -them (after this chapter is finished, right now there's nothing -there yet). There are 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. +where ? is the number of the runlevel and rcS.d which contain a number of s +ymbolic 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. The real scripts are in /etc/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 called with different parameters like start, stop, restart, reload, +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 +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 is run with the start argument. +There is one exception. Links that start with an S in the +rc0.d and rc6.d directories will not cause anything to be started. They +will be called with the paramater stop to stop +something. The logic behind it is that when you are going to reboot or +halt the system, you don't want to start anything, only stop the +system. + These are descriptions of what the arguments make the scripts do: -- cgit v1.2.3-54-g00ecf