ports/92108: port www/lighttpd rc.d script improvement

Lapo Luchini lapo at lapo.it
Sat Jan 21 19:00:32 UTC 2006


>Number:         92108
>Category:       ports
>Synopsis:       port www/lighttpd rc.d script improvement
>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:   Sat Jan 21 19:00:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Lapo Luchini
>Release:        FreeBSD 6.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD motoko.lapo.it 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Nov 2 19:07:38 UTC 2005 root at rat.samsco.home:/usr/obj/usr/src/sys/GENERIC amd64

Existing /usr/local/etc/rc.d/lighttpd.sh does not check config file
before restarting the service (and thus, risking to terminate it until
the problem is solved).

Adding the following lines would check before restarting:

restart_precmd="checkconfig"
checkconfig()
{ 
  echo "Performing sanity check on lighttpd configuration:"
  eval "${command} ${command_args} -t"
}

It is clearly inspired to rc.d/apache2.sh.

  Lapo
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list