From owner-freebsd-bugs@FreeBSD.ORG Sun May 24 19:20:05 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E822A1065673 for ; Sun, 24 May 2009 19:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A6A488FC20 for ; Sun, 24 May 2009 19:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4OJK5WN039600 for ; Sun, 24 May 2009 19:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4OJK5ZW039599; Sun, 24 May 2009 19:20:05 GMT (envelope-from gnats) Resent-Date: Sun, 24 May 2009 19:20:05 GMT Resent-Message-Id: <200905241920.n4OJK5ZW039599@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steven Hartland & Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 292C0106566C for ; Sun, 24 May 2009 19:16:15 +0000 (UTC) (envelope-from root@ftp0.uk.multiplay.co.uk) Received: from ftp1.multiplay.co.uk (ftp0.uk.multiplay.co.uk [85.236.96.13]) by mx1.freebsd.org (Postfix) with ESMTP id C0ED28FC28 for ; Sun, 24 May 2009 19:16:09 +0000 (UTC) (envelope-from root@ftp0.uk.multiplay.co.uk) Received: from ftp1.multiplay.co.uk (localhost.multiplay.co.uk [127.0.0.1]) by ftp1.multiplay.co.uk (8.14.3/8.14.3) with ESMTP id n4OIuBvj000889 for ; Sun, 24 May 2009 19:56:11 +0100 (BST) (envelope-from root@ftp0.uk.multiplay.co.uk) Received: (from root@localhost) by ftp1.multiplay.co.uk (8.14.3/8.14.3/Submit) id n4OIuBX6000888; Sun, 24 May 2009 19:56:11 +0100 (BST) (envelope-from root) Message-Id: <200905241856.n4OIuBX6000888@ftp1.multiplay.co.uk> Date: Sun, 24 May 2009 19:56:11 +0100 (BST) From: Steven Hartland & To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: conf/134918: rc.subr fails to detect perl daemons X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steven Hartland & List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2009 19:20:06 -0000 >Number: 134918 >Category: conf >Synopsis: rc.subr fails to detect perl daemons >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 24 19:20:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Charlie & >Release: FreeBSD 7.2-RELEASE i386 >Organization: Multiplay >Environment: System: FreeBSD ftp1.multiplay.co.uk 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sun May 24 19:21:08 BST 2009 root@ftp1.multiplay.co.uk:/usr/obj/usr/src/sys/MULTIPLAY i386 >Description: rc.subr fails to detect perl daemons which rename themselves to [perl] >How-To-Repeat: use a perl daemon such as mrtg >Fix: Apply the following patch --- /etc/rc.subr.orig 2009-05-24 19:49:37.000000000 +0100 +++ /etc/rc.subr 2009-05-24 19:49:59.000000000 +0100 @@ -317,5 +317,5 @@ _fp_args='_argv' _fp_match='case "$_argv" in - ${_interp}|"${_interp} "*|"${_interpbn}: ${_procname}"*)' + ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)' else # a normal daemon _procnamebn=${_procname##*/} >Release-Note: >Audit-Trail: >Unformatted: