3.12. Starting and stopping daemon services

The init program of Linux -also known as process control initialization, is in charge of starting all the normal and authorized processes that need to run at boot time on your system. These may include the APACHE daemons, NETWORK daemons, and anything else that must be running when your machine boots. Each of these processes has a script under /etc/rc.d/init.d/ directory written to accept an argument, which can be start, stop and restart. You can execute those scripts by hand in fact with a command:

Example 3-1. Starting and Stopping various Daemon's

To start the httpd Web Server manually under Linux.


         [root@deep] /# /etc/rc.d/init.d/httpd start
         

Starting httpd: [OK]

To stop the httpd Web Server manually under Linux.


         [root@deep] /# /etc/rc.d/init.d/httpd stop
         

Shutting down http: [OK]

To restart the httpd Web Server manually under Linux.


         [root@deep] /# /etc/rc.d/init.d/httpd restart
         

Shutting down http: [OK] Starting httpd: [OK]

Check inside your /etc/rc.d/init.d/ directory for services available and use command start | stop | restart to work around.