#! /sbin/sh #Tag 0x00000f00 # Start or stop the apache 1.3.3 httpd webserver taken from bsd lpr script # "$Revision: 1.5 $" # Lachlan Cranswick hack from bsd lpr script # (possibly dodgy) - version 1.00 22 July 1998 #Updated from 1.2.6 to Apache 1.3.3 11th October 1998 IS_ON=/etc/chkconfig if $IS_ON verbose; then ECHO=echo else # For a quiet startup and shutdown ECHO=: fi case "$1" in 'start') if $IS_ON httpd; then $ECHO "Starting apache 1.3.6 httpd webserver \c" /usr/local/apache/bin/apachectl stop if test -x /usr/local/apache/bin/httpd; then /usr/local/apache/bin/apachectl start fi #old bsdlpr stuff if test -x /usr/local/etc/httpd/lpd; then #old bsdlpr stuf /usr/etc/lpd > /dev/null 2>&1 #old bsdlpr stuff fi $ECHO "." fi ;; 'stop') $ECHO "Stopping apache 1.3.3 httpd webserver \c" /usr/local/apache/bin/apachectl stop $ECHO "." ;; *) echo "usage: $0 {start|stop}" ;; esac