> Okay, I am brand new to the Unix world - my company got me a SPARC
> me to trinaing and I am still hating life. How long until I become
> those Unix/linux devotees?
> In the meantime, I would greatly appreciate info on getting Apache to
> automatically restart when I reboot the server. Right not I have to go
> usr/local/apache/bin and do the httpd thing.
Nope, you post to usenet, you read on usenet. It's not a place to ask
for private responses to things others might find useful...
Are you running Solaris or Linux (they both work on ultra sparc
hardware, so it could be either.)
If you are running a unix flavor with SYS V startups, then there should
be a directory like /etc/rc.d that controls startup.
In sysV there will be a set of directories like:
rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d
These directories have links to scripts stored in the init.d directory.
The scripts in the init.d directory are used to start and stop
services. If you look in init.d there should be an httpd script.
Inside each script there is a section called stop and a section called
When you make a link to these files in the rc3.d or rc5.d directories,
you start it with either a capitol S or a capitol K. The first letter
is followed by a two digit number. When a machine enters a run level,
the K scripts are run first, in numeric order, and called the linked
scripts with a stop command. So, K08autofs -> ../init.d/autofs would
result in the autofs stop being run. Next, K20xxx and so on.
Then the S00 through S99 scripts are run. Run levels 3 to 5 on my
machine are linked like so: S85httpd -> ../init.d/httpd which results
in my /etc/rc.d/init.d/httpd script being run with a start command.
Since run level 3 is console mode, and run level 5 is Xwindows (4 isn't
really used much.) you would want to do this while in rc3.d, rc4.d and
ln -s ../init.d/httpd S85httpd
And that should tell it to come up each boot.
Failing that, you could just toss the following line at the end of
rc.local in the /etc/rc.d directory:
And be done with it.
Quote:> PS - Are there any good Apache resources in the way of usenet groups
> or websites?
This is one of the better usenet groups there is.
For web sites, take a look at www.apache.org, which has lots of hidden
info in the apache documentation area, and www.apacheweek.com, which has
a great deal of good info.
Sent via Deja.com http://www.deja.com/
Before you buy.