Home >

How to start stop service in Linux ?

3. March 2011

To start or stop any service in Linux you need to get root level access, then use these commands:

 

    • “/sbin/service [name] start” starts the service
    • “/sbin/service [name] stop”  stops the service
    • “/sbin/service [name] status” displays the service status

and if you need to check all the available services:

/sbin/chkconfig ––list

if you want to run any service on next startup:

/sbin/chkconfig ––level 345 [name] on

if you want to remove any service from startup:

/sbin/chkconfig ––level 345 [name] off

That's All.

Good Luck

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading