Date: Mon, 28 Apr 2003 14:28:54 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: <freebsd-arch@freebsd.org> Cc: freebsd-rc@yahoogroups.com Subject: Re: Removal of the old rc system from -current Message-ID: <009001c30dbc$684a2c10$13fd2fd8@Admin02> References: <20030426154030.M13476@znfgre.qbhto.arg>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Doug Barton" <DougB@freebsd.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009001c30dbc$684a2c10$13fd2fd8>