From owner-freebsd-arch@FreeBSD.ORG Mon Apr 28 12:28:58 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AC9837B401 for ; Mon, 28 Apr 2003 12:28:58 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00CA143FBD for ; Mon, 28 Apr 2003 12:28:57 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h3SJSrdR020745; Mon, 28 Apr 2003 14:28:53 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <009001c30dbc$684a2c10$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: References: <20030426154030.M13476@znfgre.qbhto.arg> Date: Mon, 28 Apr 2003 14:28:54 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-0.3 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT_OE version=2.43 cc: freebsd-rc@yahoogroups.com Subject: Re: Removal of the old rc system from -current X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 19:28:58 -0000 From: "Doug Barton" > 2. Backport /etc/rc.subr to RELENG_4 prior to 4.9-Release. The purpose > here is to allow ports authors to make use of the rcNG system for their > startup scripts, and to possibly allow us to backport major features that > just work better in the NG framework. > I started porting my ports rc scripts to work on both rcNG and rcOG systems. In this process I found the ideal solution for the ports rc.d script: 1. define default port variables in the script 2. check for /etc/rc.subr a. if rc.subr exists, use rcNG style b. if rc.subr not exists 1. source /etc/defaults/rc.conf (or /etc/rc.conf) 2. use rcOG style This way we can keep compatibility with previous releases as well in the ports tree. (see ports/security/cyrus-sasl/files/*.sh & PR 51505). Then after a period of time we could drop the rcOG support from the ports tree. Another option would be to have bsd.port.mk detect that /etc/rc.subr doesn't exist, and then install a rc.subr on these older systems. Scot