From owner-freebsd-doc@FreeBSD.ORG Thu Feb 27 12:54:36 2014 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF79513B for ; Thu, 27 Feb 2014 12:54:36 +0000 (UTC) Received: from mxf1.bahnhof.se (mxf1.bahnhof.se [213.80.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3535714C6 for ; Thu, 27 Feb 2014 12:54:36 +0000 (UTC) Received: from localhost (mxf1.local [127.0.0.1]) by mxf1-reinject (Postfix) with ESMTP id 9C3ED32BC89 for ; Thu, 27 Feb 2014 13:31:28 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MXF1) X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-99 required=5 tests=[SPF_PASS=-0.001] Received: from mxf1.bahnhof.se ([127.0.0.1]) by localhost (mxf1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0tsEpag35rYf for ; Thu, 27 Feb 2014 13:31:23 +0100 (CET) Received: from mail.bjuv.org (h-84-63.a175.priv.bahnhof.se [79.136.84.63]) by mxf1.bahnhof.se (Postfix) with ESMTP id A604132BC84 for ; Thu, 27 Feb 2014 13:31:23 +0100 (CET) Received: from [172.24.1.28] (unknown [31.15.36.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bjuv.org (Postfix) with ESMTPSA id 453DA20099 for ; Thu, 27 Feb 2014 13:31:23 +0100 (CET) Message-ID: <530F301B.7030101@cyberinfo.se> Date: Thu, 27 Feb 2014 13:31:23 +0100 From: Jack-Benny Persson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-doc@freebsd.org Subject: Patch to FreeBSD Handbook - jails X-Enigmail-Version: 1.6 Content-Type: multipart/mixed; boundary="------------090609050702000606060004" X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 12:54:36 -0000 This is a multi-part message in MIME format. --------------090609050702000606060004 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I've noticed that the Jails chapter in the Handbook is a bit out of date. The handbook says one should place the jail_* config options in the /etc/rc.conf file but this is deprecated. The config options should now be placed in /etc/jail.conf. I've created a SVN patch here with an update. Best regards, Jack-Benny Persson --------------090609050702000606060004 Content-Type: text/x-patch; name="jails.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jails.diff" Index: en_US.ISO8859-1/books/handbook/jails/chapter.xml =================================================================== --- en_US.ISO8859-1/books/handbook/jails/chapter.xml (revision 44074) +++ en_US.ISO8859-1/books/handbook/jails/chapter.xml (working copy) @@ -352,15 +352,22 @@ For each jail listed in jail_list, a - group of &man.rc.conf.5; settings, which describe the - particular jail, should be added: + group of &man.jail.conf.5; settings, which describe the + particular jail, should be added to /etc/jail.conf: - jail_www_rootdir="/usr/jail/www" # jail's root directory -jail_www_hostname="www.example.org" # jail's hostname -jail_www_ip="192.168.0.10" # jail's IP address -jail_www_devfs_enable="YES" # mount devfs in the jail -jail_www_devfs_ruleset="www_ruleset" # devfs ruleset to apply to jail + +www { # Name of the jail from jail_list in /etc/rc.conf + host.hostname = www.example.org; # Hostname + ip4.addr = 192.168.0.10; # IP address of the jail + path = "/usr/jail/www"; # Path to the jail + devfs_ruleset = 4; # DevFS ruleset + mount.devfs; # Mount devfs inside the jail + exec.start = "/bin/sh /etc/rc"; # Start command to run + exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command to run to stop the jail +} + + The default startup of jails configured in &man.rc.conf.5;, will run the /etc/rc script of the jail, which assumes the jail is a complete --------------090609050702000606060004--