Tag Archives: manage

CentOS: manage services

  • /sbin/service [name] start
    starts the background service
  • /sbin/service [name] stop
    stops the background service
  • /sbin/service [name] restart
    restarts the background service
  • /sbin/service [name] status
    displays the background service status
  • /sbin/chkconfig ––list
    displays all the available services
  • /sbin/chkconfig ––level 345 [name] on
    automatically runs the background service on the next startup
  • /sbin/chkconfig ––level 345 [name] off
    removes the background service from the startup list
  • /sbin/chkconfig [name] on
    enables the on-demand service
  • /sbin/chkconfig [name] off
    disables the on-demand service