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 |
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. |