
May 6th, 2001, 04:42 AM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
1) You should have changed your topic to How to start Apache on boot. This is Apache forum, all questions are supposed to be Apache-related anyway.
2) Set your ServerType standalone and use whatever startup script to start it up. Since you haven't provided the most important info: What platform, I can't help you further. Anyhow, here is a sample of Apache startup script at /usr/local/etc/rc.d/apache.sh on FreeBSD:
#!/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
|