httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@apache.org>
Subject Re: apachectl and options take 2
Date Thu, 29 Aug 2002 20:34:29 GMT
Dave Hill wrote:
> Hi again,
> 
> Attached is the diff -u version of the proposes apachectl changes.
> If I am outvoted on the env veriable (and so far it is 2 against me :-)
> just drop the $HTTPD_OPTIONS from the end of the line in the few places 
> it occurs. 
> 
> thanks,
> 	Dave Hill
Hi Dave.
what I do for my testing is override $HTTP in the bin/envvar file.
maybe this would work for you
> 
> --- apachectl.in.orig	2002-08-29 11:20:36.000000000 -0400
> +++ apachectl.in	2002-08-29 14:19:29.000000000 -0400
> @@ -22,7 +22,6 @@
>  # When multiple arguments are given, only the error from the _last_
>  # one is reported.  Run "apachectl help" for usage info
>  #
> -ARGV="$@"
>  #
>  # |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
>  # --------------------                              --------------------
> @@ -58,21 +57,26 @@
>  fi
>  
>  ERROR=0
> -if [ "x$ARGV" = "x" ] ; then 
> -    ARGV="-h"
> +if [ "x$1" = "x" ] ; then 
> +    FIRST_ARG="-h"
> +    ARGV=""
> +else
> +    FIRST_ARG=$1
> +    shift
> +    ARGV="$@"
>  fi
>  
> -case $ARGV in
> +case $FIRST_ARG in
>  start|stop|restart|graceful)
> -    $HTTPD -k $ARGV
> +    $HTTPD -k $FIRST_ARG $ARGV $HTTPD_OPTIONS
>      ERROR=$?
>      ;;
>  startssl|sslstart|start-SSL)
> -    $HTTPD -k start -DSSL
> +    $HTTPD -k start -DSSL $ARGV $HTTPD_OPTIONS
>      ERROR=$?
>      ;;
>  configtest)
> -    $HTTPD -t
> +    $HTTPD -t $ARGV $HTTPD_OPTIONS
>      ERROR=$?
>      ;;
>  status)
> @@ -82,7 +86,7 @@
>      $LYNX $STATUSURL
>      ;;
>  *)
> -    $HTTPD $ARGV
> +    $HTTPD $FIRST_ARG $ARGV
>      ERROR=$?
>  esac
>  
> 



Mime
View raw message