SOURCES: apache.init, apache.sysconfig - added HTTPD_CONF variable

Paweł Gołaszewski blues w pld-linux.org
Sob, 16 Paź 2004, 10:26:10 CEST


On Fri, 15 Oct 2004, radek wrote:
> Author: radek                        Date: Fri Oct 15 20:29:50 2004 GMT
> Module: SOURCES                       Tag: HEAD
> ---- Log message:
> - added HTTPD_CONF variable
[...]
> +[ -z "$HTTPD_CONF" ] && HTTPD_CONF="/etc/httpd/httpd.conf"
> +if   [ -d "$HTTPD_CONF" ]; then CFG="-d $HTTPD_CONF"
> +elif [ -f "$HTTPD_CONF" ]; then CFG="-f $HTTPD_CONF"
> +else CFG=""; fi
>  
>  RETVAL=0
>  # See how we were called.
> @@ -41,7 +45,7 @@
>  	# Check if the service is already running?
>  	if [ ! -f /var/lock/subsys/httpd ]; then
>  		msg_starting httpd.${HTTPD_MPM}
> -		daemon httpd.${HTTPD_MPM} -f /etc/httpd/httpd.conf $HTTPD_OPTS
> +		daemon httpd.${HTTPD_MPM} $CFG $HTTPD_OPTS
[...]
> -# Cmdline options 
> +# config dir/file path
> +HTTPD_CONF="/etc/httpd/httpd.conf"
> +
> +# other command-line options 
[...]

Jaki jest cel tego, poza problemami przy późniejszych upgrade?

-- 
pozdr.  Paweł Gołaszewski 
---------------------------------
If you think of MS-DOS as mono, and Windows as stereo,
then Linux is Dolby Pro-Logic Surround Sound with Bass Boost
and all the music is free.




Więcej informacji o liście dyskusyjnej pld-devel-pl