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 1JWD9d-0002Ma-6L for garchives@archives.gentoo.org; Mon, 03 Mar 2008 16:04:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9225BE07A6; Mon, 3 Mar 2008 16:04:39 +0000 (UTC) Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by pigeon.gentoo.org (Postfix) with ESMTP id 56EDFE07D6 for ; Mon, 3 Mar 2008 16:04:39 +0000 (UTC) Received: by mail.marples.name (Postfix, from userid 102) id 8E0BD19010D; Mon, 3 Mar 2008 16:04:38 +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 16:04:38 +0000 From: Roy Marples In-Reply-To: <1204559449.6937.21.camel@salomon-22> References: <1204559449.6937.21.camel@salomon-22> Message-ID: <55656bf216229a05ed1d736cd3aa85d6@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: e97cf9b5-16cc-4784-8fec-656e2de3c263 X-Archives-Hash: ff4405ee1ac4fad6a40a0d3726937bc2 On Mon, 03 Mar 2008 16:50:49 +0100, Michael Haubenwallner wrote: > For hpux fex this just is adding some symlinks: > /sbin/init.d/name -> /my/prefix/sbin/init.d/distccd > /sbin/rc3.d/S990name -> /sbin/init.d/name # to start in runlevel 3 > /sbin/rc2.d/K100name -> /sbin/init.d/name # to kill for runlevel 2 >=20 > When doing so with OpenRC's main process, it could integrate smoothly > with normal system reboot and start prefixed init.d scripts. Yes, that should work fine if it ends up calling /sbin/init.d/name start and /sbin/init.d/name stop to start and stop it. You just have to somehow inject rc sysinit into the boot process to remove all state data. But a better way would be like so /my/prefix/sbin/rc-wrapper #/bin/sh case "$1" in start) /my/prefix/sbin/rc default;; stop) /my/prefix/sbin/rc single;; esac As you then get OpenRC handling the dependency order if you have >1 service. Thanks Roy --=20 gentoo-dev@lists.gentoo.org mailing list