Mike,
In /etc/init.d you will find your startup scripts. For an example, look at /etc/init.d/sendmail.
Here are a couple of things that you will want to learn and understand, read their man pages etc:
- init
- chkconfig
Run apachectl to get the command set:
- start
- stop
- restart
- configtest
- graceful
Generally, writing an /etc/init.d/httpd script is straight forward, just make sure you have the chkconfig line in there so you can turn it on and off as a service.
When you make changes to httpd.conf, make sure to run "apachectl configtest" before restarting.
There are numerous startup scripts out there that should just drop in and run for you with slight changes to file paths and such. Here is a very common one:
-
http://www.e-gineer.com/instructions/httpd