/etc/rc.d Run Level Directories
Run levels have various processes that should be started or stopped when entering those run levels. This is managed through entries in directories associated with each run level: /etc/rc0.d for run level zero, /etc/rc1.d for run level 1 and so forth. This is accomplished by adding links to scripts located in the directory /etc/rc.d/init.d. The processes are started or stopped according to a link whose name starts with either a k (stop the process) or a s (start the process) followed by a number (to control the order in which the processes are stopped or started) and the name of the script file in the /etc/rc.d/init.d directory. A partial example of one of these directories is:
lrwxrwxrwx 1 root root 14 Mar 24 12:15 K84rpd->../init.d/rpd
lrwxrwxrwx 1 root root 16 Mar 24 12:15 K84rgd->../init.d/rgd
lrwxrwxrwx 1 root root 15 Mar 24 12:15 K85zba->../init.d/zba
lrwxrwxrwx 1 root root 17 Mar 24 12:01 K92ipm->../init.d/ipm
lrwxrwxrwx 1 root root 19 Mar 24 18:52 K95fbt->../init.d/fbt
lrwxrwxrwx 1 root root 23 Mar 24 11:31 S00mde->../init.d/mde
lrwxrwxrwx 1 root root 15 Mar 24 11:30 S05kdz->../init.d/kdz
lrwxrwxrwx 1 root root 19 Mar 24 12:01 S08ip6->../init.d/ip6
lrwxrwxrwx 1 root root 18 Mar 24 12:01 S08ipc->../init.d/ipc
lrwxrwxrwx 1 root root 18 Mar 24 11:32 S08ipt->../init.d/ipt
The chkconfig command can be used to add entries and check the directory to see if it is setup properly.
Note that the rc.d directories may vary or even not exist in some distributions.
Home - Table Of Contents - Contact Us
CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005
Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version © Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.