chkconfig, enter the chkconfig command:
You see a list of configuration options, which are described in "Checking Options With chkconfig". If you use the -s option, you see a list that is sorted by whether the configuration item is on or off.chkconfig
To change a configuration option, use the chkconfig command with two arguments: the name of the option you wish to change and the new status of the configuration (on or off). You must have root privilege to change a system configuration.
For example, to turn on detailed process accounting, log in either as root or as the system administrator, and enter:
To turn off process accounting, enter:chkconfig acct on
Some aspects of system configuration do not take effect until the system is shut down and rebooted because startup scripts, which are in the directory /etc/init.d, are run when the system is booted up and brought to multiuser mode. These scripts read the files that chkconfig sets to determine which daemons to start.chkconfig acct off
Some configuration items that can be controlled by chkconfig may not be displayed by chkconfig. These include:
The opposite behavior allows users to remove or replace files in /tmp, which is a publicly writable directory, even if they do not own the files. This is handy behavior if you have users who need to create large temporary files and you are short on disk space. But it is better to increase disk space to avoid important files being removed.
In this example, chkconfig creates a configuration file called nocleantmp in the directory /etc/config.chkconfig -f nocleantmp on