Date: Wed, 20 Mar 2002 22:44:26 +0000 From: tony.mccrory@mgn.co.uk To: Jamie Ostrowski <jamie@getsetnet.net> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Problem with Starting httpd on FreeBSD Message-ID: <OF418DB80E.1631F6AC-ON80256B82.007C5552@mgn.co.uk>
index | next in thread | raw e-mail
[-- Attachment #1 --]
/etc/rc will only look for startup scripts in /usr/local/etc/rc.d/ ending
in .sh
so you can do either
1) rename the apachectl script to apachectl.sh
or 2) put apachectl in /usr/local/sbin/ and instead put apache.sh in
/usr/local/etc/rc.d/
I'd suggest (2). Thats the way it came 'out of the box' for me.
I've attached my apache.sh.
Regards,
Tony(See attached file: apache.sh)
Jamie Ostrowski
<jamie@getsetnet.ne To: freebsd-isp@FreeBSD.ORG
t> cc:
Sent by: Subject: Problem with Starting httpd on FreeBSD
owner-freebsd-isp@F
reeBSD.ORG
20/03/2002 22:34
I am building a new web server for an ISP, and I am having trouble
getting Apache to start up automatically when the machine comes up.
I am running FreeBSD 4.5 RELEASE on a 1GHz PIII. I have installed
apachectl in /usr/local/etc/rc.d, and set it to 755. I can start apache
from the command manually in that directory like this:
/usr/local/etc/rc.d/apachectl start
and it comes up just fine.
It does take about 15 seconds for it to start as there are a couple
hundred virtual hosts it is starting up. Is init giving up after a certain
length of time, before apachectl has time to finish firing up httpd? If
so, is there a way this can be configured? I can't seem to locate any
documentation that covers this specific problem. Thanks.
- Jamie
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message
IMPORTANT NOTICE The information in this e-mail is confidential and should
only be read by those persons to whom it is addressed and is not intended
to be relied upon by any person without subsequent written confirmation of
its contents. Furthermore, the content of this e-mail is the personal view
of the sender and does not represent the advice, views or opinion of our
company. Accordingly, our company disclaim all responsibility and accept
no liability (including in negligence) for the consequences of any person
acting, or refraining from acting, on such information prior to the receipt
by those persons of subsequent written confirmation. In particular (but
not by way of limitation) our company disclaims all responsibility and
accepts no liability for any e-mails which are defamatory, offensive,
racist or in any other way are in breach of any third party's rights,
including breach of confidence, privacy or other rights. If you have
received this e-mail message in error, please notify me immediately by
telephone. Please also destroy and delete the message from your computer.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message is strictly
prohibited. Trinity Mirror plc is the holding company for the Trinity
Mirror group of companies and is registered in England No. 82548, with its
address at Kingsfield Court, Chester Business Park, Chester CH4 9RE.
[-- Attachment #2 --]
#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case "$1" in
start)
[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache'
;;
stop)
[ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF418DB80E.1631F6AC-ON80256B82.007C5552>
