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 1JWD3z-0001bl-Gu for garchives@archives.gentoo.org; Mon, 03 Mar 2008 15:58:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B0D2E066D; Mon, 3 Mar 2008 15:58:49 +0000 (UTC) Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by pigeon.gentoo.org (Postfix) with ESMTP id 201F4E066D for ; Mon, 3 Mar 2008 15:58:49 +0000 (UTC) Received: by mail.marples.name (Postfix, from userid 102) id 4A2C619010D; Mon, 3 Mar 2008 15:58:47 +0000 (GMT) To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Google SOC 2008 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 Date: Mon, 3 Mar 2008 15:58:47 +0000 From: Roy Marples In-Reply-To: <20080303145320.GD7729@gentoo.org> References: <20080303145320.GD7729@gentoo.org> Message-ID: <5e985752b1fac3a18077ec0820d9751f@marples.name> X-Sender: roy@marples.name User-Agent: RoundCube Webmail/0.1-rc1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 66b4be70-ae3f-40c0-97ce-3fea745b57aa X-Archives-Hash: 183667d8e147e8318cd04f31203bc929 On Mon, 3 Mar 2008 15:53:20 +0100, Fabian Groffen wrote: > On 03-03-2008 13:36:25 +0000, Roy Marples wrote: >> On Thursday 28 February 2008 11:22:13 Roy Marples wrote: >> > So the only thing left (aside from bug fixing) is to instruct OpenRC >> > dependency >> > code that it's in a prefix and to respect the noprefix keyword in > services, >> > or >> > to provide dummy services. >> >> This is now done. >> >> I have OpenRC fully working in a prefixed non priviledged install on a > NetBSD >> box. >=20 > Can you define how this is working? Do you just have NetBSD and instal= l > OpenRC in /my/arbitrary/path, or do you have a full set of utilities > under /my/arbitrary/path with OpenRC as one of them? I did this in OpenRC source rm -rf /home/roy/pkg make PREFIX=3D/home/roy/pkg PKG_PREFIX=3D/usr/pkg install Create Gentoo style init script in /home/roy/pkg/etc/init.d for say boinc export PATH=3D$PATH:/home/roy/pkg/bin:/home/roy/pkg/sbin rc-update add boinc default rc default boinc started >=20 >> The only question I have left is what mechanism resets service state, = as > the >> prefixed state dir needs will presist between reboots which isn't > desirable. >=20 > startprefix could maybe start some sort of process that lives on, > activated like keychain does, such that multiple startprefix invocation= s > do not start the system all the time -- if that is desired at all. In > a real scenario it may be just a hook from the host OS's start/stop > mechanism to tell OpenRC in what state it should run. >=20 > If a service such as PostgreSQL is killed (maybe a reboot?) does OpenRC > then know it is not running any more? I guess it does, so that's good > enough, IMO. This needs to be done on startup rc sysinit rc default Which is pretty much what we do in Gentoo anyway. Just ensure that the sysinit runlevel only runs once, as it will remove all state when run again. Thanks Roy --=20 gentoo-dev@lists.gentoo.org mailing list