diff --git a/chapter07/chapter07.xml b/chapter07/chapter07.xml index 5b1cdb8ad..b97852d03 100644 --- a/chapter07/chapter07.xml +++ b/chapter07/chapter07.xml @@ -1,5 +1,5 @@ -Creating system boot scripts +Setting up system boot scripts &c7-introduction; diff --git a/chapter07/createdirs.xml b/chapter07/createdirs.xml deleted file mode 100644 index 0cca02dcc..000000000 --- a/chapter07/createdirs.xml +++ /dev/null @@ -1,13 +0,0 @@ - -Creating directories - - -We need to start by creating a few extra directories that are used by -the boot scripts. These directories are created by running: - -cd /etc && -mkdir rc{0,1,2,3,4,5,6,S}.d init.d sysconfig && -cd init.d - - - diff --git a/chapter07/introduction.xml b/chapter07/introduction.xml index daa783cff..92fd0c18b 100644 --- a/chapter07/introduction.xml +++ b/chapter07/introduction.xml @@ -2,12 +2,10 @@ Introduction -This chapter will create the necessary scripts that are run at boot time. -These scripts perform tasks such as remounting the root file system -mounted read-only by the kernel into read-write mode, activating the swap -partition(s), running a check on the root file system to make sure it's -intact, setting up networking and starting the daemons that the -system uses. +This chapter will setup the bootscripts that you installed in chapter +6. Most of these scripts will work without needing to modify them, but a +few do require additional configuration files setup as they deal with +hardware dependant information. We will be using SysV style init scripts. We have chosen this style because it is widely used and we feel comfortable with it. If you want to @@ -16,10 +14,5 @@ at &hints-root;bsd-init.txt . -If you decided to copy&paste the scripts from this chapter, you -would do best to copy&paste them in small chunks, one screenfull at a -time. Some scripts are too large to fit in the copy buffer and will be -truncated when you paste it. - diff --git a/chapter07/usage.xml b/chapter07/usage.xml index f6894436c..4f40939d4 100644 --- a/chapter07/usage.xml +++ b/chapter07/usage.xml @@ -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. -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 +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. -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. - -The real scripts are in /etc/init.d. They do all the work, and the +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 diff --git a/index.xml b/index.xml index 1a60924a3..53de960c2 100644 --- a/index.xml +++ b/index.xml @@ -332,7 +332,6 @@ -