The Red Hat distribution of Linux provides a slightly more organized way of managing processes. Instead of hunting and killing them by finding their process id in the process table, Red Hat provides a collection of scripts in the “/etc/rc.d/init.d” directory which will allow you to start and stop processes as desired.

For example, to shut down the “httpd” (Apache web server) service, simply run the httpd script, as follows:

/etc/rc.d/init.d/httpd stop

In much the same manner, you can use the “start” option to start a service. Or, if you have made changes to a configuration file and wish to restart a service so those changes are recognized, you can use the “restart” option.

Note: (Note: Oddly enough, the “restart” option does not seem to be supported for some services.)

reference : http://www.tldp.org/LDP/lame/LAME/linux-admin-made-easy/redhat-processes.html

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

WordPress.com.

Up ↑

%d bloggers like this: