From owner-freebsd-rc@FreeBSD.ORG Wed Nov 2 16:13:42 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56F3F16A41F; Wed, 2 Nov 2005 16:13:42 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id E350543D45; Wed, 2 Nov 2005 16:13:41 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jA2GDBxd008901; Wed, 2 Nov 2005 08:13:11 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jA2GDB1J008900; Wed, 2 Nov 2005 08:13:11 -0800 Date: Wed, 2 Nov 2005 08:13:11 -0800 From: Brooks Davis To: Yar Tikhiy Message-ID: <20051102161311.GA8499@odin.ac.hmc.edu> References: <4353DBBC.2000508@savvis.net> <43541F79.6040008@ebs.gr> <43554BCE.7090309@savvis.net> <4355FD0C.2090702@ebs.gr> <4356D12F.7000006@savvis.net> <43576A9D.1050209@ebs.gr> <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr> <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20051102111709.GD2465@comp.chem.msu.su> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 16:13:42 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 02, 2005 at 02:17:09PM +0300, Yar Tikhiy wrote: > On Tue, Nov 01, 2005 at 01:51:02PM -0800, Maksim Yevmenkin wrote: > > All, > >=20 > > please find the first draft of bluetooth rc.d scripts located at > >=20 > > http://people.freebsd.org/~emax/bluetooth-rc.diff.txt > >=20 > > this patch adds > >=20 > > 1) /etc/rc.d/bluetooth script that will be used to start and stop=20 > > bluetooth devices. it will be called by devd(8) in response to device= =20 > > arrival and departure events. the script also supports _optional_ per= =20 > > device configuration. per device configuration is stored in=20 > > /etc/rc.conf.d/bluetooth.$dev file, where $dev is the driver name of th= e=20 > > device, i.e. ubt0, sio4, btccc1 > >=20 > > 2) /etc/rc.conf.d/bluetooth.device.sample script. this is just an=20 > > example. it should be copied to /etc/rc.conf.d/bluetooth.$dev and then= =20 > > defaults can be adjusted. once again if there is no=20 > > /etc/rc.conf.d/bluetooth.$dev script then reasonable defaults will be u= sed. >=20 > My concern is about putting things not related directly to system > startup driven by rc(8) in /etc/rc.d and /etc/rc.conf.d directories. > Perhaps it would be better to still use rc.subr as a source of great > subroutines, but place the bluetooth scripts and configs in their > own directories -- rc.subr should support this. I don't disagree, but we've already got three scripts like this in /etc/rc.d (dhclient, power_profile, and wpa_supplicant) so I don't think it's a big deal. IMO, the conf files are find (though I don't like the idea of a .sample in /etc/rc.conf.d). There is some argument for moving the scripts to another directory though. I'm not sure what we'd call it though. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDaOWWXY6L6fI4GtQRAhK7AJ40RFpmZnOqZTIeWZzPZPxOLLnbegCg2foV ZnETu3oKuyS/y/5wC4Pz0ew= =SvHf -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--