IDependOn-Set: 1
IDependOn-Set: 13
IDependOn-Set: 15
IDependOn-Set: 2
IDependOn-Set: 235
IDependOn-Set: 248
IDependOn-Set: 249
LastModifiedSecs: 932850038
Parent: 15
SequenceNumber: 2
Title: How to make Apache startup on system reboot on Solaris
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 932850038
Type: monospaced
Lines: 30
----------
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

EndPart: 0
