Chkconfig to activate and deactivate services


June 3rd, 2008

The chkconfig command can be used to activate and deactivate services. You use “chkconfig –list” to query a service in “/etc/rc.d”, that service’s settings for each runlevel are displayed. For example, the command “chkconfig –list httpd” returns the following output:

httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Viewing chkconfig Entries:

root@server# chkconfig –list | grep on

Modifying a chkconfig entry is almost as easy as listing the existing configuration. The form is:

chkconfig [--level <levels>] <name> <on|off|reset>

Runlevels (–level)

0. System halt
1. Single-user mode
2. Multiuser, without NFS
3. Complete multiuser mode
4. User defined
5. X11 (XDM login)
6. Reboot

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment