This article comes from freeelamp, the original link is as follows:
Http://www.freeelamp.com/new/publish/1003237634/index_html
Here is another article link to Chkconfig
Http://tech.ccidnet.com/pub/Article/c738_a73966_p2.html
Want to know what LINUX is the same as Autoexec.Bat or Config.sys or 98 MSConfig? Introduction: This article provides a detailed description of many symbolic connections for Linux system administrators easily manage /tc/rc[0-6].d directory by introducing Chkconfig. Those Linux "rookie" can also learn and cognition the concept of the LINUX system through this article. Unlike DOS or Windows, Linux can have multiple runs. Common is a multi-user 2, 3, 4, 5, and many people know that 5 is the level of X-windows, and 0 is shutdown. The change of the run level can be switched through the init command. For example, suppose you want to maintain the system to enter a single user status, then you can use init 1 to switch. During the switching process of Linux's running level, the system automatically looks for the files of K and S under the directory /etc/rc[0-6].d of the run level, and perform these scripts in the following digital order. Maintenance of these scripts is a cumbersome thing, Linux provides the chkconfig command to update and query system services from different run levels. Syntax: chkconfig --list [name] chkconfig --add namechkconfig --dl namechkconfig [--LEVEL Levels] NAME
Chkconfig [--LEVEL Levels] Name
ChkConfig has five functions: add service, delete service, list service,
Change the startup information and check the startup status of a particular service.
ChkConfig does not have a parameter run, show usage. If you add a service name, check if this service is started at the current run level. If yes, returns true, otherwise returns false. --Level option can specify the run level to view without being currently running.
If ON, OFF or RESET is specified after the service name, CHKCONFIG will change the startup information of the specified service. ON and OFF refer to the service when the service changes when changing the run level. Reset refers to initialization
Service information, whether there is any problem with the initialization script specified.
For ON and OFF switches, the system is only valid for running grades 3, 4, 5 for running levels 3, 4, 5, but RESET can be valid for all runners. When you specify the -level option, you can select a specific run.
It should be noted that for each run level, there can be only one startup script or stop script. When switching the run level, INIT will not restart the already started service, and will not stop the service that has been stopped again.
Option introduction:
--Level Levels
Specify the run level, string constructed from numbers 0 to 7, such as:
--level 35 represents the specified run level 3 and 5.
--Add Name
This option adds a new service. ChkConfig ensures that each run level has a start (S) or kill (K) entrance. If there is any absence, it will be automatically established from the default init script.
--Del Name
Use to delete the service and remove the relevant symbolic connection from /etc/rc[0-6].d.
--List Name
List, if you specify NAME, just display the specified service name, otherwise list all the services of all services in different runs. Runtime file
Each service managed by ChKConfig needs to add two rows or more comments under the script under the corresponding init.d.
The first line tells ChkConfig to default start-up and priority initiation and stop. If a service default is not started at any runtime, then use-instead of the run level.
The second line describes the service to use / cross-bank comments.
For example, random.init contains three lines:
# chkconfig: 2345 20 80
# Description: SAVES AND RESTORES SYSTEM ENTROPY POOL for /
# higher Quality Random Number Generation.
Indicates that the Random script should be started at operation level 2, 3, 4, 5, starting priority to 20, stop priority 80.
Ok, introduce it to here, go see the script under /etc/rc.d/init.d in your directory.