Management autoload services in CentOS

Post

Comments   |   Linux


To add a service at startup OS CentOS / RHEL you need a chkconfig  serice

  • chkconfig –list <service name>
  • chkconfig –add <service name>
  • chkconfig –del <service name>
  • chkconfig [--level levels] <service name> <on|off|reset>
  • chkconfig [--level levels] <service name>
# chkconfig --list httpd (checking whether to autostart httpd)
httpd              0:off   1:off   2:off    3:off   4:off    5:off    6:off
# chkconfig --level 35 httpd on (include the level of performance 3 and 5)
# chkconfig --list httpd (checking)
 
httpd              0:off    1:off    2:off    3:on 4:off    5:on 6:off
# chkconfig --level 35 httpd off (disable autoload)
# chkconfig --del httpd (delete service)
# chkconfig --list httpd (checking)
# chkconfig --add httpd (adding to autoload)

Leave a Reply