From nobody@FreeBSD.org  Mon Aug 22 08:47:53 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BBAFD16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Aug 2005 08:47:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 89C6943D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Aug 2005 08:47:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7M8lrwZ031748
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Aug 2005 08:47:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j7M8lr3P031747;
	Mon, 22 Aug 2005 08:47:53 GMT
	(envelope-from nobody)
Message-Id: <200508220847.j7M8lr3P031747@www.freebsd.org>
Date: Mon, 22 Aug 2005 08:47:53 GMT
From: "Andrey V. Semyonov" <wilfre@tcom.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rcNG local package initialization is non-'rcorder'ed
X-Send-Pr-Version: www-2.3

>Number:         85206
>Category:       conf
>Synopsis:       rcNG local package initialization is non-'rcorder'ed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 22 08:50:17 GMT 2005
>Closed-Date:    Mon Dec 05 08:17:33 GMT 2005
>Last-Modified:  Mon Dec 05 08:17:33 GMT 2005
>Originator:     Andrey V. Semyonov
>Release:        5.4-RELEASE-p6
>Organization:
Tower-Telecom
>Environment:
FreeBSD valhalla.starnet 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #3: Thu Jul 28 14:20:07 MSD 2005     root@valhalla.starnet:/usr/obj/usr/src/sys/VALHALLA  i386
>Description:
      /etc/rc.d/localpkg script does not order startup of local packages by rcorder before start them. This makes rcorder-assigned keywords such as REQUIRE, PROVIDE, etc... not work in that scripts and brakes the depended local package startups in some cases...
>How-To-Repeat:
      I tried this with the installation of DansGuardian and squid, in which DG should connect to squid port on startup. But squid started after DG, so DG stopped startud with a parent-proxy connect error.
>Fix:
      I suggest the following patch to /etc/rc.d/localpkg script:
--- localpkg.old Sun Jul 31 14:28:57 2005
+++ localpkg Mon Aug 22 12:45:12 2005
 @@ -36,6 +36,7 @@
   done
   script_save_sep="$IFS"
   IFS="${script_name_sep}"
+  slist=$(rcorder ${slist} 2>/dev/null | while read sltmpvar; do echo -n "${sltmpvar} "; done)
   for script in ${slist}; do
    if [ -x "${script}" ]; then
     (set -T
 @@ -73,6 +74,7 @@
   done
   script_save_sep="$IFS"
   IFS="${script_name_sep}"
+  slist=$(rcorder ${slist} 2>/dev/null | while read sltmpvar; do echo -n "${sltmpvar} "; done)
   for script in `reverse_list ${slist}`; do
    if [ -x "${script}" ]; then
     (set -T
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Dec 5 08:15:48 GMT 2005 
State-Changed-Why:  

Thank you for submitting this idea, but we will be using 
a more general approach in 7-current, and RELENG_6. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Dec 5 08:15:48 GMT 2005 
Responsible-Changed-Why:  

I'm taking responsibility for this transition. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=85206 
>Unformatted:
