Hi!
Where can I find, or how do I write, a startupscript for httpd (apache 1.3x) that is supported by chkconfig. The background is this:
A few days ago I discovered that httpd didn't start on boot. In the /etc/init.d/ katalog I found, besides the file httpd, a file named httpd.lock. I moved it to /tmp/ and then ran > chkconfig --list httpd
I recieved the following output:
Quote:
|
The service httpd isn't supported by chkconfig
|
I then looked att the file /etc/init.d/httpd and dicouvered that it was the same as the /usr/local/apache/bin/apachectl .
(I assume it was I who put it there, though I can't remeber having done it. )
In the man page for chkconfig it said that
Quote:
|
Each service which should be manageable by chkconfig needs two or more commented lines added to its init.d script. The first line tells chk-config what runlevels the service should be started in by default, as well as the start and stop priority levels.
|
and an example:
Quote:
For example, random.init has these three lines:
# chkconfig: 2345 20 80
# description: Saves and restores system entropy pool for \
# higher quality random number generation.
|
I tried to put the two lines in the /etc/init.d/httpd but I got the same output from the command:
chkconfig --list httpd
I run Redhat 9 and have installed the rpm version of apache that came with the distro.
TIA
Sören Edzen