From owner-freebsd-jail@FreeBSD.ORG Sun Mar 31 16:28:14 2013 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D7517A78 for ; Sun, 31 Mar 2013 16:28:14 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from m2.gritton.org (gritton.org [199.192.164.235]) by mx1.freebsd.org (Postfix) with ESMTP id B84BA30C for ; Sun, 31 Mar 2013 16:28:14 +0000 (UTC) Received: from glorfindel.gritton.org (c-174-52-130-157.hsd1.ut.comcast.net [174.52.130.157]) (authenticated bits=0) by m2.gritton.org (8.14.5/8.14.5) with ESMTP id r2VGSAcY060607; Sun, 31 Mar 2013 10:28:10 -0600 (MDT) (envelope-from jamie@FreeBSD.org) Message-ID: <51586419.5090207@FreeBSD.org> Date: Sun, 31 Mar 2013 10:28:09 -0600 From: Jamie Gritton User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.24) Gecko/20120129 Thunderbird/3.1.16 MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: rc.d/jail and jail.conf References: <515721F8.9090202@erdgeist.org> <515847AF.8070808@FreeBSD.org> <5158526A.4020400@quip.cz> In-Reply-To: <5158526A.4020400@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Mar 2013 16:28:14 -0000 On 03/31/13 09:12, Miroslav Lachman wrote: > Jamie Gritton wrote: >> On 03/30/13 14:59, Dirk Engling wrote: >>> On Sat, 30 Mar 2013, Nicolas de Bari Embriz Garcia Rojas wrote: >>> >>>> If I am right you can define the order of start for jails in the >>>> jail2_list (rc.conf), something like: >>>> >>>> jail2_list="jail1 jail2" >>> >>> Thanks, I suppose it mimicks the way rc.d/jail has handled it. I just >>> wondered if there's a way to have this order automatically determined by >>> a dependency graph, it's a minor request, though. >> >> jail(8) itself does the dependency graph. So the jail2 startup needs to >> run a single jail command instead of one for each jail. > > So it means jail2 should be fixed, because it runs > jail -c -i -J /var/run/jail_${_j}.id ${_j} > for each jail from jail2_list="jailA jailB" Yes it does. > Is there a way to disable jail defined in jail.conf? (to avoid > jail2_list in rc.conf) I'm not sure what you're asking. You want a jail in jail.conf that's not started up? > And what happens if there is jail2_list="jailA jailB" in rc.conf and > jailB is defined in jail.conf as dependency of jailA? I guess rc.d/jail2 > will try to start jailB again. > It will be started as dependency of jailA by first jail command starting > jailA. > Or new jail(8) doesn't start the "depend" jail automatically and just > check its existence? > I didn't try it yet. It will start jailB as part of starting jailA, and then it will try to start jailB again on its own. So yes, it needs work. - Jamie