From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JULPT-0001Rp-L3 for garchives@archives.gentoo.org; Wed, 27 Feb 2008 12:29:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10BC9E01A1; Wed, 27 Feb 2008 12:29:17 +0000 (UTC) Received: from bacchus.cwi.nl (bacchus.cwi.nl [192.16.191.9]) by pigeon.gentoo.org (Postfix) with ESMTP id BA672E0339 for ; Wed, 27 Feb 2008 12:29:16 +0000 (UTC) Received: from gentoo.org (pegasus.ins.cwi.nl [192.16.196.142]) by bacchus.cwi.nl (8.13.6/8.12.3) with ESMTP id m1RCTFnV009114 for ; Wed, 27 Feb 2008 13:29:15 +0100 (CET) Date: Wed, 27 Feb 2008 13:29:15 +0100 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Google SOC 2008 Message-ID: <20080227122915.GA315@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20080227084205.GV865@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (Linux 2.6.23.15-137.fc8, VIM - Vi IMproved 7.1) Organization: Gentoo Foundation, Inc. X-Archives-Salt: ac83f08e-2fbc-49da-abce-5f4ecca48526 X-Archives-Hash: e9c3ba7453bbe09ca7bc81cf53ec8373 On 27-02-2008 10:46:43 +0000, Roy Marples wrote: > > On Wed, 27 Feb 2008 09:42:05 +0100, Fabian Groffen > wrote: > > - baselayout porting to Prefix (mostly the start stop mechanisms) > > What start stop mechanics do you mean? > > OpenRC already has full FreeBSD jail support in services like do > depend() { keyword nojail; } > > That effectively disables the automatic running of services by rc itself, > such as fsck, mounting and stuff as that's taken care of by the host OS. > Running in Prefix is pretty much the same as a jail from OpenRC's > perspective > (correct me if I'm wrong) so all we would have to do is tell OpenRC that > it's > currently in a jail. Presently this is done only for FreeBSD by testing > sysctl values. Maybe we could turn this into a compile option for Prefix. > > Also, we now support services in directories other than /etc/init.d, > although > this is currently hard coded to /usr/local/etc/init.d. Well... that's great! But a jail or a (ch)root is in general not the same as a "prefix". I have to look more closely at what openrc does these days, but for the (ancient) version of baselayout we have in prefix now, I recall that: a) most of it didn't compile on Darwin and Solaris b) hence we only use basically the functions.sh script (hacked up) so what we need to have working is: ${EPREFIX}/etc/init.d/postgresql start and similar. And maybe even a sort of init-level stuff, such that one can start all services in the Prefix and stop them as well. That basically gets quite useful once Prefix goes "privileged" and you could start sshd, slapd, apache2, etc, etc. on privileged ports, and you really would like those to be started as well in some correct order (on e.g. Solaris). -- Fabian Groffen Gentoo on a different level -- gentoo-dev@lists.gentoo.org mailing list