All pastes #730688 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-09 13:01 UTC
rendered paste body
#!/bin/sh
#
# /etc/rc.d/rc.apache2
#
# Start/stop/restart the Apache2 web server.
#
# To make Apache start automatically at boot, make this
# file executable:  chmod 755 /etc/rc.d/rc.httpd
# and add appropriate entry in /etc/rc.d/rc.M file

case "$1" in
  start)
    echo "Starting Apache 2.0 webserver"
    /usr/sbin/apachectl start
  ;;
  stop)
    echo "Stopping Apache 2.0 webserver"
    /usr/sbin/apachectl stop
  ;;
  restart)
    echo "Restarting Apache 2.0 webserver"
    /usr/sbin/apachectl restart
  ;;
  *)
    echo "Usage: $0 start|stop|restart"
  ;;
esac