[root@S2005051301 rc3.d]# cat S99apache
#!/bin/sh
APACHE_HOME=/usr/local/apache
#APACHE_OWNER=oracle
if [! -f $APACHE_HOME/bin/apachectl]
then
echo "apache startup: cannot start"
echo "please check the apache location"
exit
fi
case "$1" in
'start')
$APACHE_HOME/bin/apachectl -k start
;;
'stop')
$APACHE_HOME/bin/apachectl -k stop
;;
esac