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.
chkconfig has five distinct functions: adding new services for management, removing services from management, listing the current startup information for services, changing the start-up information for services, and checking the start-up state of a particular service.
Synopsis
chkconfig --list [name] chkconfig --add name chkconfig --del name chkconfig [--level levels] name <on|off|reset> chkconfig [--level levels] name
Example
List status for all services
chkconfig --list
List status for test service
chkconfig --list test
Add service called test
chkconfig --add test
Delete service called test
chkconfig --del test
Turn on & Turn off service
chkconfig --level 3 5 httpd off
The command above will turn off httpd service in run levels 3 and 5.
Related Posts:
- How To Setup A LAMP Server On Centos 6.0
- How To Flush/Remove All Iptables Rules In Linux
- How To Enable/Disable Firewall On Centos / RedHat / Fedora
- How To Install Solr 4.10.4 On CentOS 6.5
- How To Restore Default Permissions Of All Files Under / (ROOT)
- How To Start / Shutdown / Reboot Guest Operating Systems With virsh Command On KVM
- How To Install Lighttpd And PHP (PHP-FPM) On CentOS 6
- How Do I Configure Apache Server To Listen Multiple Ports ?
- How To Configure Static IP Address On CentOS
- How To Restart Networking Service In Linux
{ 1 trackback }
{ 0 comments… add one now }