Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 15:22:42 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        "Scot W. Hetzel" <hetzels@westbend.net>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Removal of the old rc system from -current
Message-ID:  <20030429122242.GB680@straylight.oblivion.bg>
In-Reply-To: <009001c30dbc$684a2c10$13fd2fd8@Admin02>
References:  <20030426154030.M13476@znfgre.qbhto.arg> <009001c30dbc$684a2c10$13fd2fd8@Admin02>

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

--TiqCXmo5T1hvSQQg
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 28, 2003 at 02:28:54PM -0500, Scot W. Hetzel wrote:
> 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 th=
at
> > just work better in the NG framework.
> >
> I started porting my ports rc scripts to work on both rcNG and rcOG syste=
ms.
> In this process I found the ideal solution for the ports rc.d script:
>=20
>     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

Actually, this ought to be more like:
	b. if rc.subr does not exist
		1. source /etc/defaults/rc.conf
		2. if the source_rc_confs function exists, execute it
		3. if the source_rc_confs function does not exist,
		   try to emulate it by checking for the files listed
		   in the rc_conf_files variable and sourcing them if
		   they exist.

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This sentence claims to be an Epimenides paradox, but it is lying.

--TiqCXmo5T1hvSQQg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD4DBQE+rm6S7Ri2jRYZRVMRAvinAJ0WgJcyu5/eC5GBBXMuHNnOZp49vQCYhA9J
XQ0PR35LdlPZRT5SeH/g5w==
=VXOV
-----END PGP SIGNATURE-----

--TiqCXmo5T1hvSQQg--



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