From owner-freebsd-jail@FreeBSD.ORG Sat Mar 30 20:38: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 14CD914F for ; Sat, 30 Mar 2013 20:38:31 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id CD72DB17 for ; Sat, 30 Mar 2013 20:38:30 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 92EFF28427; Sat, 30 Mar 2013 21:38:24 +0100 (CET) Received: from [192.168.1.2] (ip-89-177-49-222.net.upcbroadband.cz [89.177.49.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id B64DE28436; Sat, 30 Mar 2013 21:38:23 +0100 (CET) Message-ID: <51574D3F.9040300@quip.cz> Date: Sat, 30 Mar 2013 21:38:23 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Dirk Engling Subject: Re: rc.d/jail and jail.conf References: <515721F8.9090202@erdgeist.org> In-Reply-To: <515721F8.9090202@erdgeist.org> 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: Sat, 30 Mar 2013 20:38:31 -0000 Dirk Engling wrote: > 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. Jails in any RELEASE version of FreeBSD are not 100% ready to be started by "the new way". The old rc.d/jail + rc.conf style is still the only one officially supported. (see my posts one week ago) > 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? You can use sysutils/jail2 but be aware of devfs problem... In theory, with jail.conf you should use "depend" (see man jail) to define jail dependencies. > 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. There is a way, you should use flags. I discussed this topic with bz@ few years ago and this is the official recommendation how newly added features should be used without changes in rc.d/jail jail_myjail_flags="-l -U root -n myjail" Miroslav Lachman