Red Hat and Red Hat based Linux distributions (such as CentOS used on our VPS accounts) make use of the script called chkconfig to enable and disable the system services running in Linux.
For example, to enable the apache webserver to start in certain run levels, you use the chkconfig script to enable it in the desired run levels as follows:# chkconfig httpd --add
# chkconfig httpd on --level 235This will enable the apache webserver to automatically start in the run levels 2, 3 and 5. You can check this by running the command:
# chkconfig --list httpdOne can also disable the service by using the off flag as shown below:
# chkconfig httpd off
# chkconfig httpd --del
Add to Favourites
Print this Article