3 # apache Start the apache HTTP server.
7 PATH=/bin:/usr/bin:/sbin:/usr/sbin
9 SUEXEC=/usr/lib/apache/suexec
10 PIDFILE=/var/run/$NAME.pid
11 CONF=/etc/apache/httpd.conf
12 APACHECTL=/usr/sbin/apachectl
18 test -f $DAEMON || exit 0
19 test -f $APACHECTL || exit 0
21 # ensure we don't leak environment vars into apachectl
22 APACHECTL="env -i LANG=${LANG} PATH=${PATH} $APACHECTL"
24 if egrep -q -i "^[[:space:]]*ServerType[[:space:]]+inet" $CONF
31 echo -n "Starting web server: $NAME"
32 start-stop-daemon --start --quiet --background --exec $DAEMON
36 echo -n "Stopping web server: $NAME"
37 start-stop-daemon --stop --signal 3 --quiet --exec $DAEMON
41 echo -n "Reloading $NAME configuration"
42 start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
46 echo -n "Reloading $NAME modules"
62 echo "Usage: /etc/init.d/$NAME {start|stop|reload|reload-modules|force-reload|restart}"