View Single Post
Old 01-05-2003, 07:00 AM   #2 (permalink)
sdeming
Code Monkey
 
Join Date: Jul 2002
Location: Michigan
Posts: 85
sdeming is on a distinguished road
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
__________________
Scott
B4 09 BA 09 01 CD 21 CD 20 53 63 6F 74 74 24
sdeming is offline   Reply With Quote