From owner-freebsd-current@FreeBSD.ORG Tue Nov 8 20:59:01 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49176106566C for ; Tue, 8 Nov 2011 20:59:01 +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 039218FC08 for ; Tue, 8 Nov 2011 20:59:00 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1061928428; Tue, 8 Nov 2011 21:59:00 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id DE1F628424; Tue, 8 Nov 2011 21:58:58 +0100 (CET) Message-ID: <4EB99812.3010107@quip.cz> Date: Tue, 08 Nov 2011 21:58:58 +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: Martin Matuska References: <4E316E19.9040309@FreeBSD.org> <4E318D75.608@FreeBSD.org> <4E31A3CD.60500@FreeBSD.org> <4E31AEC6.8080106@FreeBSD.org> <4E331DC1.5000108@FreeBSD.org> <4E348673.6080406@FreeBSD.org> <4EB94F6D.3020100@FreeBSD.org> In-Reply-To: <4EB94F6D.3020100@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current , Jamie Gritton Subject: Re: [PATCH] updated /etc/rc.d/jail (ZFS support, persistent jails and other features) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2011 20:59:01 -0000 Martin Matuska wrote: > I have improved the jail etc script significantly (in addition to ZFS > support and other improvements). > > - you can now set a jail_name="" parameter to set the name for your jail > - the jails are still searched by "name", so you cannot manage the jail > with the script if "name" in /etc/rc.conf changes while running. > - the "status" subcommand now also shows the number of running > processes, this way you can identify an empty jail > - there are also two new subcommands - "create" and "remove", intended > for persistent jail operation > - if a jail is set to persistent, you can do the following sequence: > create start stop remove. > - non-persistent jails may also be created (won't be started) but will > be removed on a "stop" > > http://people.freebsd.org/~mm/patches/jail/jail_etc.v2.patch > http://people.freebsd.org/~mm/patches/jail/jail_etc.v2.nowhitespace.patch Just a note - there were many attempts to add jail_myjail_name="myjail" variable to rc.conf but it was always denied with same answer: There is no reason for it, it can be done by jail_myjail_flags=" -n myjail" See this PR http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/150599 and freebsd-jail@ archive. Maybe it will change in jail v2 land or jail config by Jamie... Miroslav Lachman