From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jan 21 19:00:32 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D04B16A41F for ; Sat, 21 Jan 2006 19:00:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 780D343D82 for ; Sat, 21 Jan 2006 19:00:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0LJ0Lf1032219 for ; Sat, 21 Jan 2006 19:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0LJ0L9T032218; Sat, 21 Jan 2006 19:00:21 GMT (envelope-from gnats) Resent-Date: Sat, 21 Jan 2006 19:00:21 GMT Resent-Message-Id: <200601211900.k0LJ0L9T032218@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lapo Luchini Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A09316A41F for ; Sat, 21 Jan 2006 18:58:50 +0000 (GMT) (envelope-from lapo@mail.lapo.it) Received: from mail.lapo.it (static.88-198-0-105.clients.your-server.de [88.198.0.105]) by mx1.FreeBSD.org (Postfix) with SMTP id 6183B43D5C for ; Sat, 21 Jan 2006 18:58:48 +0000 (GMT) (envelope-from lapo@mail.lapo.it) Received: (qmail 31484 invoked by uid 1001); 21 Jan 2006 18:58:47 -0000 Message-Id: <20060121185847.31483.qmail@mail.lapo.it> Date: 21 Jan 2006 18:58:47 -0000 From: Lapo Luchini To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: ale@FreeBSD.org, hendrik@scholz.net Subject: ports/92108: port www/lighttpd rc.d script improvement X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lapo Luchini List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2006 19:00:32 -0000 >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: