From owner-freebsd-rc@FreeBSD.ORG Thu Jun 5 09:22:33 2008 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34659106567D for ; Thu, 5 Jun 2008 09:22:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id B6D2F8FC20 for ; Thu, 5 Jun 2008 09:22:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m559MOB0000769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Jun 2008 12:22:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m559MNhJ005449; Thu, 5 Jun 2008 12:22:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m559MNVW005448; Thu, 5 Jun 2008 12:22:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 5 Jun 2008 12:22:23 +0300 From: Kostik Belousov To: Warner Losh Message-ID: <20080605092223.GA94309@deviant.kiev.zoral.com.ua> References: <20080604095356.GC63348@deviant.kiev.zoral.com.ua> <20080604.225552.74744301.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99" Content-Disposition: inline In-Reply-To: <20080604.225552.74744301.imp@bsdimp.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: freebsd-rc@freebsd.org Subject: Re: /etc/rc.d location 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: Thu, 05 Jun 2008 09:22:33 -0000 --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 04, 2008 at 10:55:52PM -0600, Warner Losh wrote: > From: Kostik Belousov > Subject: /etc/rc.d location > Date: Wed, 4 Jun 2008 12:53:56 +0300 >=20 > > Hi, > >=20 > > according to the hier(7), /etc directory contain system configuration > > files and scripts. I had an experience with old systems where /etc > > contained binaries for the system management, most of them now supply > > only symlinks in the /etc. AFAIR, HP-UX from 10.x moved the startup > > scripts from /etc into /sbin. I like this approach. > >=20 > > For us, moving /etc/rc, /etc/rc.d, /etc/rc.subr and similar files from > > /etc to /sbin (?) have the following benefits: > > 1. Standard update procedures, both installworld and any binary upgrade > > may treat the startup scripts as the usual system component. Now we > > rely on the mergemaster, that have to provide special support for > > /etc/rc.d at least. > > 2. I believe we consider user modifications to the rc.subr and /etc/rc.d > > in the same way as the modifications for the sources of the buildable > > binaries. Putting it away from /etc mean that /etc is fully controll= ed > > by the user instead of the user/system mix. > > 3. System provisioning (I am sorry for possibly marketroid term, but > > it is how it called there) becomes simpler, since we would have clean > > separation of the invariant part and locally changed part on the > > level of directories. > > Compatibility, at the first look, may be handled by the symlinks, as > > usual. >=20 > This is a very interesting thought. I'm not sure that /sbin is the > right place to put them. They aren't needed for normal system > operations and may interfere with user's operations. My main point is to allow /etc/rc* to be brought up to date by the usual update procedures without risk of hosing /etc. Whatever is found more suitable then /sbin is ok for me. >=20 > My knee jerk reaction is 'no'. But my more reasoned one might be > 'that's not a horrible idea.' I'm sure there's lots of implciations > that I've not thought of, however. Me too. That was the reason why I said that me is obviously wrong person to do the change. >=20 > > Now, having the VCS that makes moving files around not so prohibitely > > costly, I think the topic may be discussed. Obviously, I am not the > > person who actually understand the rc, and my proposal is only proposal > > to bring it to consideration in the case this appears to not be a > > nonsense for some rc@ master. >=20 > Just because we can copy files, doesn't mean we must. :-) Again, fully agree. But, unability to move was an absolute blocker for this issue in my opinion. --5vNYLRcllDrimb99 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhHsEoACgkQC3+MBN1Mb4hsZQCfQiFwZcbhD87HwduUEc/kMmxM Aj8AoNQKK9oiqERhrfNlRqqg3YqqGsGZ =oaYF -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--