LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do you register Apache as a service on RH 9? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-register-apache-as-a-service-on-rh-9-a-425796/)

Thaidog 03-17-2006 12:46 PM

How do you register Apache as a service on RH 9?
 
I was wondering what I would need to do to register Apache 2.0 as a service so I can use commands like:

service apache status

chkconfig apache on

unSpawn 03-18-2006 06:34 AM

I was wondering what I would need to do to register Apache 2.0 as a service
When you install the Apache rpm it automagically sets up a init script in /etc/rc.d/init.d called httpd. /sbin/service just relies on the existence of the /etc/rc.d/init.d/httpd init script, so this "registers" the service for use with "service". Automagical starting and stopping a service is set up with chkconfig. If no symbolic links are made in any of the /etc/rc.d/rc?.d dirs you can set it up by issuing "chkconfig --add httpd".


All times are GMT -5. The time now is 11:45 AM.