chkconfig (Red Hat)
chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories.[1]
Documentation
- man 8 'chkconfig' [EN]
Syntax
chkconfig --list [SERVICE]
chkconfig <--add|--del> SERVICE
chkconfig [--level LEVELS] SERVICE <on|off|reset>
chkconfig [--level LEVELS] SERVICE
Parameters
- --add SERVICE
- This option adds a new SERVICE for management by chkconfig. When a new service is added, chkconfig ensures that the service has either a start or a kill entry in every runlevel. If any runlevel is missing such an entry, chkconfig creates the appropriate entry as specified by the default values in the init script.
- NOTE:Default entries in LSB-delimited INIT INFO sections take precedence over the default runlevels in the initscript.
- --del SERVICE
- The SERVICE is removed from chkconfig management, and any symbolic links in /etc/rc[0-6].d which pertain to it are removed.
- --level LEVELS
- Specifies the run LEVELS an operation should pertain to. It is given as a string of numbers from 0 to 7. For example, --level 35 specifies runlevels 3 and 5.
- --list SERVICE
- This option lists all of the SERVICE which chkconfig knows about, and whether they are stopped or started in each runlevel. If name is specified, information in only display about service name.
References
- ↑ man 8 'chkconfig'