#! /bin/sh
#
# apache	Start the apache HTTP server.
#
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/apache-httpd
NAME=apache

test -f $DAEMON || exit 0

case "$1" in
  start)
    start-stop-daemon --start --verbose --pidfile /var/run/$NAME.pid --exec $DAEMON
    ;;
  stop)
    start-stop-daemon --stop --verbose --pidfile /var/run/$NAME.pid --exec $DAEMON
    ;;
  reload)
    echo "Reloading $NAME configuration files"
    start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
    ;;
  *)
    echo "Usage: /etc/init.d/$NAME {start|stop|reload}"
    exit 1
    ;;
esac

exit 0
