Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2008 15:34:45 GMT
From:      Marshal Newrock <marshal@freedombi.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/123933: www/lighttpd rc file does not allow changing of pidfile
Message-ID:  <200805231534.m4NFYjfr000625@www.freebsd.org>
Resent-Message-ID: <200805231540.m4NFe08i049975@freefall.freebsd.org>

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

>Number:         123933
>Category:       ports
>Synopsis:       www/lighttpd rc file does not allow changing of pidfile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 23 15:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Marshal Newrock
>Release:        7.0
>Organization:
FreedomBI
>Environment:
FreeBSD sourcevox.freedombi.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
In the lighttpd rc file, pidfile is hardcoded to /var/run/lighttpd.pid.  This is problematic if lighttpd is being run as a non-root user and the pidfile must be put in a location writable by that user.
>How-To-Repeat:

>Fix:
Replace:
pidfile=/var/run/lighttpd.pid

with:
pidfile=${lighttpd_pidfile:-"/var/run/lighttpd.pid"}

to allow setting lighttpd_pidfile in /etc/rc.conf


>Release-Note:
>Audit-Trail:
>Unformatted:



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