Skip site navigation (1)Skip section navigation (2)
Date:      21 Jan 2006 18:58:47 -0000
From:      Lapo Luchini <lapo@lapo.it>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ale@FreeBSD.org, hendrik@scholz.net
Subject:   ports/92108: port www/lighttpd rc.d script improvement
Message-ID:  <20060121185847.31483.qmail@mail.lapo.it>
Resent-Message-ID: <200601211900.k0LJ0L9T032218@freefall.freebsd.org>

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

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



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