ports/77147: [PATCH] www/lighttpd - startup script doesn't honor lighttpd_conf in rc.conf

Mark A. Wicks mwicks at kettering.edu
Sat Feb 5 18:40:16 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list