Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2008 02:08:19 GMT
From:      Sahil Tandon <sahil@tandon.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/123411: [PATCH] rc.d startup script does not correctly show status because "name" is set incorrectly.
Message-ID:  <200805050208.m4528JQZ079346@www.freebsd.org>
Resent-Message-ID: <200805050210.m452A3v1018958@freefall.freebsd.org>

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

>Number:         123411
>Category:       ports
>Synopsis:       [PATCH] rc.d startup script does not correctly show status because "name" is set incorrectly.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 05 02:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sahil Tandon
>Release:        FreeBSD 6.3-RELEASE
>Organization:
>Environment:
FreeBSD mountain.localdomain 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The port installs a rc.d/ script that always alleges policyd-weight is not running -- even when it is.  This is because "name" is set incorrectly.  This port simply redefines the "name" variable so the status (i.e. when the user runs /usr/local/etc/rc.d/policyd-weight status) is correctly reported.
>How-To-Repeat:
Start policyd-weight; then check the status (via the rc.d script), and notice it says that policyd-weight is not running, when it in fact is (as can be confirmed by the pid in /var/run or the output of ps).
>Fix:
output of diff -u <oldfile> <newfile> is included in attached .txt file.

Patch attached with submission follows:

--- policyd-weight.old	2008-05-04 15:27:31.000000000 -0400
+++ policyd-weight	2008-05-04 15:27:51.000000000 -0400
@@ -13,7 +13,7 @@
 
 . /etc/rc.subr
 
-name="policyd-weight"
+name="policyd_weight"
 rcvar=policyd_weight_enable
 
 start_cmd=policyd_weight_start


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



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