The Chkconfig command can be used to check and set various services of the system
Use syntax:
chkconfig [--add][--del][--list][system service] or Chkconfig [--level < class Code >][system service][on/off/reset]
Parameter usage:
--addà adds the specified system service, allows the CHKCONFIG directive to manage it, and adds relevant data to the system-initiated narrative file.
--delà deletes the specified system service, is no longer managed by the Chkconfig directive, and deletes the relevant data within the system-initiated narrative file.
--level< Class Code >à specifies which execution level the read system service is to open or close.
Examples of Use:
Chkconfig--list List of all system services
Chkconfig--add httpd Add httpd Service
Chkconfig--del httpd Delete httpd service
Chkconfig--level httpd 2345 on httpd is on when the operation level is 2, 3, 4, 5.
The Chkconfig command provides an easy way to set the runlevel of a service. For example, to set up a MySQL server to run at run Level 3 and 4, you must first add MySQL as a service managed by Chkconfig:
Chkconfig command usage in Linux system