----------
From: "jon *" jon@clearink.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: how apache server can be started automaticaly.
Date: Sat, Jul 24, 1999, 1:28 PM
> can any one tell how apache service can be started automatically at system
> bootup.I am using apache1.3.3. on Intel solaris7.
put this script in /etc/rc2.d and name it S98httpd (don't forget to change
the path to the location of your apachectl script.
#!/bin/sh
APACHE_PATH=/usr/local/apache/bin
case $1 in
'start')
if [ -f ${APACHE_PATH}/apachectl ]; then
${APACHE_PATH}/apachectl startssl
fi
;;
'stop')
if [ -f ${APACHE_PATH}/apachectl ]; then
${APACHE_PATH}/apachectl stop
fi
;;
esac
|