If this is a build from a tar.gz source file do this.
ln -s /path/to/apache/bin/apachectl /etc/rc.d/init.d/httpd
this puts a sym link in the init.d directory.
add these lines to the apachectl file:
chkconfig: 2345 10 90
description: starts stops apache
do this just below the #!/bin/sh line.
run:
/sbin/chkconfig --del httpd
/sbin/chkconfig --add httpd
Now apache (httpd) will start at boot. You can start and stop apache while your
messing around with it by going to /etc/rc.d/init.d and running:
./httpd stop|start|restart
If this is a RPM install, all the files are in the correct places and you just
need to set it up to start at boot. A good tool for this is ntsysv. Run it as
root, it's simple to figure out.
On Sun, 26 Sep 1999, you wrote:
> On Sun, 26 Sep 1999, you wrote:
> > How do I do that?
> >
> > It's httpd, the one that is built wiht Apache 1.3.9. I have it
> > configured to standalone in ../../apache/conf/httpd.conf right now, but
> > I don't know how to start it automatically.
> >
> > It says in the docs something about rc3.d, but I don't know what file
> > to edit inside the directory.
> Hmm....good point. I'd say put the httpd command in
> /etc/rc.d/rc.local and let it go from there. AFAIK, that *should* be
> the equivalent of putting it in MSDOS's "autoexec.bat" where it'll
> start automagically at boot.
> 'Course, this is only a guess, as I'm not running httpd here...
> John
--
Brett Jones
[EMAIL PROTECTED]