Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2005 13:33:37 -0500 (EST)
From:      "Mark A. Wicks" <mwicks@kettering.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hendrik@scholz.net
Subject:   ports/77147: [PATCH] www/lighttpd - startup script doesn't honor lighttpd_conf in rc.conf
Message-ID:  <200502051833.j15IXbwG010813@gaspra.kettering.edu>
Resent-Message-ID: <200502051840.j15IeGZK011848@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77147
>Category:       ports
>Synopsis:       [PATCH] www/lighttpd - startup script doesn't honor lighttpd_conf in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 05 18:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Mark A. Wicks
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
Kettering University
>Environment:
System: FreeBSD gaspra.kettering.edu 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #13: Fri Jan 21 09:14:40 EST 2005 mwicks@gaspra.kettering.edu:/usr/obj/usr/src/sys/gaspra-5.3 i386

>Description:
	The order in which the environment variables are set in lighttpd.sh doesn't
allow lighttpd_conf to be overidden by a setting in rc.conf.  The setting of command_args
references the default value of lighttpd_conf before rc.conf is read.
It should be the other way around.

>How-To-Repeat:
	Try using a different conf file by changing the setting of lighttpd_conf in rc.conf.
>Fix:


*** lighttpd.sh-orig	Sat Feb  5 11:40:48 2005
--- lighttpd.sh	Sat Feb  5 13:06:02 2005
***************
*** 37,43 ****
  lighttpd_enable=${lighttpd_enable:-"NO"}
  lighttpd_conf=${lighttpd_conf:-"/usr/local/etc/lighttpd.conf"}
  
- command_args="-f ${lighttpd_conf}"
- 
  load_rc_config $name
  run_rc_command "$1"
--- 37,43 ----
  lighttpd_enable=${lighttpd_enable:-"NO"}
  lighttpd_conf=${lighttpd_conf:-"/usr/local/etc/lighttpd.conf"}
  
  load_rc_config $name
+ 
+ command_args="-f ${lighttpd_conf}"
  run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502051833.j15IXbwG010813>