Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

apachectl doesn't read rc.conf

From: Michael Erdely <mike(at)erdelynet.com>
Date: Tue Jun 24 2003 - 23:06:35 EDT


The patch below for apachectl takes into account settings in /etc/rc.conf like "-u" and/or "-DSSL".

-ME

  • usr.sbin/httpd/src/support/apachectl Fri Sep 27 20:29:39 2002 +++ usr.sbin/httpd/src/support/apachectl Tue Jun 24 17:20:42 2003 @@ -21,11 +21,13 @@
    # |||||||||||||||||||| START CONFIGURATION SECTION ||||||||||||||||||||
    # -------------------- --------------------
    #
    +# read rc configuration for http options +. /etc/rc.conf
    # the path to your PID file
    -PIDFILE=/usr/local/apache/logs/httpd.pid +PIDFILE=/var/www/logs/httpd.pid #
    # the path to your httpd binary, including options if necessary
    -HTTPD='/usr/local/apache/src/httpd' +HTTPD="/usr/sbin/httpd $httpd_flags" #
    # a command that outputs a formatted text version of the HTML at the
    # url given on the command line. Designed for lynx, however other
    @@ -75,18 +77,6 @@ ERROR=3 fi ;; - startssl|sslstart|start-SSL) - if [ $RUNNING -eq 1 ]; then - echo "$0 $ARG: httpd (pid $PID) already running" - continue - fi - if $HTTPD -DSSL; then - echo "$0 $ARG: httpd started" - else - echo "$0 $ARG: httpd could not be started" - ERROR=3 - fi - ;; stop) if [ $RUNNING -eq 0 ]; then echo "$0 $ARG: $STATUS" @@ -162,12 +152,11 @@ ;; *) BNAME=`basename $0` - echo "usage: $BNAME [ start | startssl | stop | restart | graceful | " + echo "usage: $BNAME [ start | stop | restart | graceful | " echo " status | fullstatus | configtest | help ]" cat <<EOF
 start      - start httpd
-startssl   - start httpd with SSL enabled
 stop       - stop httpd
 restart    - restart httpd if running by sending a SIGHUP or start if 
              not running
Received on Tue Jun 24 23:20:34 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:59 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library