How to add remove enable disable services on start up in Cent OS

To manage services in Cent OS in Text User Interface (TUI)
# ntsysv
if you do not have “ntsysv” command  # yum install ntsysv
its shows TUI  interface to enable and disable the services in CentOS.
from CLI we use chkconfig 
For example i am taking service name “test”
Add service called test
# chkconfig –add test
Delete service called test
# chkconfig –del test
List status for test service
# chkconfig –list test
Turn on or off services:
# chkconfig test on
# chkconfig test off
# chkconfig –level 2 test on       (to Start service on Runlavel 2)
# chkconfig –level 35 test on      (to Start service on Runlavel 35)
 

 

Leave a Comment