November 30, 2007
|
|
|
|
|
|
Chapter 8 . Understanding the Boot Process 315 Table 8-10 chkconfig Options Option Function –level A string of numbers that specifies which runlevels the requested operation effects. For example, –level 35 would specify runlevels 3 and 5. –add Adds the service to the specified runlevels. –del Removes the service from the specified runlevels. –list Lists which runlevels do and do not start this service. If no name is specified all services are reported. Another useful tool for changing runlevel information is ntsysv. It provides an easy-to-use text mode menu interface. By default it edits the current runlevel, but this can be overridden with the –level parameter. For example, to edit runlevel 5 you would use the following: [root@europa rc.d]# ntsysv –level 5 Debian startup Debian uses a similar startup routine to Red Hat and its variants, but with slightly different scripts and file placement. As we said before, Debian puts the runlevel directories rc0.d through rc6.dalong with init.d off of /etc. Once inithas been started by the kernel, it executes the first line in the inittab, which is the following: si::sysinit:/etc/init.d/rcS Instead of using a large script file to set up the base system, Debian uses the /etc/init.d/rcS script to read smaller scripts from /etc/rcS.d. The only other function of this script is to set the default path and umask. The scripts that run from rcS.dare shown below, in order. 1. S05keymaps-lct.sh. This script loads the default key maps. 2. S10checkroot.sh. This checks the root file system s constancy and then remounts it as read/write. Finally, it builds the /etc/mtab. 3. S15isapnp. This script configures any ISA Plug-and-Play devices. 4. S20modutils. This executes depmod -aand runs modprobe to load all needed modules. 5. S30checkfs.sh. This script checks the other nonroot file systems. 6. S30procps.sh. This script configures the kernel using the sysctl tool.
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.
Leave a Reply