From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MDfpk-0007Bs-Fk for garchives@archives.gentoo.org; Mon, 08 Jun 2009 14:28:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD77FE0300; Mon, 8 Jun 2009 14:28:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B7086E0300 for ; Mon, 8 Jun 2009 14:28:18 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 45EB764FFB; Mon, 8 Jun 2009 14:28:18 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Detecting Baselayout2/OpenRC from init.d scripts (summary of debate and plans from bug 270646) Date: Mon, 8 Jun 2009 10:27:52 -0400 User-Agent: KMail/1.11.3 (Linux/2.6.29.4; KDE/4.2.3; x86_64; ; ) Cc: Roy Marples References: <20090607195950.GI22927@orbis-terrarum.net> <200906080941.27411.vapier@gentoo.org> <4A2D1977.8050401@marples.name> In-Reply-To: <4A2D1977.8050401@marples.name> 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-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906081028.17308.vapier@gentoo.org> X-Archives-Salt: c026c5d2-ce75-4817-a8d0-da6b8bad206c X-Archives-Hash: 17f3e769918e66bea84b55e79fb06c3c On Monday 08 June 2009 10:00:23 Roy Marples wrote: > Mike Frysinger wrote: > > On Monday 08 June 2009 09:09:43 Roy Marples wrote: > >> Mike Frysinger wrote: > >>> if openrc versions are causing a level of incompatibility, then it > >>> should itself be setting up an env var for init.d scripts to key off of > >>> rather than having to figure out what's going on via the filesystem. > >>> the point of this thread is to detect baselayout-1 vs openrc only. > >> > >> RC_VERSION is available in 0.5.0 > >> However, for VServer it needs to be easily available without running > >> anything, hence this discussion. > > > > if it's in the execution environment of the init.d script,nothing was run > > You would have to ask the VServer team, but my understanding was they > needed to detect version of OpenRC in a container from the host before > the container is started. if systems need crazy restrictions, these things should be clearly documented (preferably in a file in the openrc tree itself). otherwise we waste time talking about stuff none of us have the foggiest clue about. so until the vserver team opts to chime in, i dont think there's anything left here. the original issue can be handled via sbin/functions.sh (unless someone has a reason why not) -mike