Linux chkconfig Command
The Linux chkconfig command is used to check and set various system services.
This is a program developed by Red Hat under the GPL rules, which can query which system services are executed by the operating system in each execution level, including various resident services.
Syntax
chkconfig [--add][--del][--list][system service] or chkconfig [--level <level code>][system service][on/off/reset]
Parameters:
--add Adds the specified system service, allowing the chkconfig command to manage it, and simultaneously adds relevant data to the system startup description file.
--del Deletes the specified system service, no longer managed by the chkconfig command, and simultaneously deletes relevant data from the system startup description file.
--level<level code> Specifies in which execution level the system service should be turned on or off.
Examples
List all commands known by chkconfig.
# chkconfig --list
Enable service.
# chkconfig telnet on // Enable Telnet service
# chkconfig --list // List the status of all services known by chkconfig
Disable service.
# chkconfig telnet off // Disable Telnet service
# chkconfig --list // List the status of all services known by chkconfig