CentOs services cheat sheet

I always forget some of those so here they are:

– start the service
/sbin/service [name] start

– stop the service
/sbin/service [name] stop

– restart the service
/sbin/service [name] restart

– display the service status
/sbin/service [name] status

– display the services list
/sbin/chkconfig ––list

– add the service to the startup list
/sbin/chkconfig ––level 345 [name] on

– remove the service from the startup list
/sbin/chkconfig ––level 345 [name] off

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s