From owner-freebsd-jail@FreeBSD.ORG Sat Mar 30 20:52:31 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 156214A2 for ; Sat, 30 Mar 2013 20:52:31 +0000 (UTC) (envelope-from nbari@inbox.im) Received: from eu.route.mx (eu.route.mx [46.137.95.40]) by mx1.freebsd.org (Postfix) with ESMTP id 897FABF4 for ; Sat, 30 Mar 2013 20:52:30 +0000 (UTC) Received: (route-mx 64445 invoked from network); 30 Mar 2013 20:52:22 -0000 Received: from 89-181-202-22.net.novis.pt (HELO [192.168.1.103]) (nbari@inbox.im@[89.181.202.22]) (envelope-sender ) by eu.route.mx (route-mx) with AES128-SHA encrypted SMTP for ; 30 Mar 2013 20:52:22 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: rc.d/jail and jail.conf From: Nicolas de Bari Embriz Garcia Rojas In-Reply-To: <515721F8.9090202@erdgeist.org> Date: Sat, 30 Mar 2013 20:52:13 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <515721F8.9090202@erdgeist.org> To: Dirk Engling X-Mailer: Apple Mail (2.1503) 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: Sat, 30 Mar 2013 20:52:31 -0000 If for starting at boot time when using jail.conf you can use the = sysutils/jail2 port If I am right you can define the order of start for jails in the = jail2_list (rc.conf), something like:=20 jail2_list=3D"jail1 jail2"=20 regards. On Mar 30, 2013, at 5:33 PM, Dirk Engling wrote: > Dear jail hackers, >=20 > if I follow the development correctly, the jail(8) command was = augmented > to make the rc.d/jail script obsolete. However when I want to use the = rc > system to start my jails, I am stuck with convincing rc.d/jail to not > fail for missing _hostname or _rootdir. >=20 > How am I supposed to have my jails started at boot time? And while = we're > at it, is there a rcorder-style way to introduce dependencies into > jail.conf to control the order my jails are started in? >=20 > Which brings me to another point, there does not seem to be a way to > convince rc.d/jail to set a jailname for old style jails, making it = hard > to integrate with tools that use libjail to translate what were > _hostname parameters to jid before. >=20 > On a related note, in order to finally include all the nextgen jail > features in my ezjail project, I wonder if there's an automated tool = to > read/write/modify jail.conf(s) on the radar. Currently I am = considering > keeping my own set of configs and generating a jail.conf per jail on = the > fly, which I do not think is in the user's interest as conflicting > jailnames may occur. >=20 > In theory a parser would be enough, but having to automatically = recreate > and correctly reorder all user comments and +=3D statements in the = config > file when re-writing the file seems a rather hard problem, too. >=20 > Regards and thanks in advance, >=20 > erdgeist > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to = "freebsd-jail-unsubscribe@freebsd.org"