Date: Thu, 27 Feb 2014 13:31:23 +0100 From: Jack-Benny Persson <jack-benny@cyberinfo.se> To: freebsd-doc@freebsd.org Subject: Patch to FreeBSD Handbook - jails Message-ID: <530F301B.7030101@cyberinfo.se>
next in thread | raw e-mail | index | archive | help
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 @@ <step> <para>For each jail listed in <varname>jail_list</varname>, a - group of &man.rc.conf.5; settings, which describe the - particular jail, should be added:</para> + group of &man.jail.conf.5; settings, which describe the + particular jail, should be added to /etc/jail.conf:</para> - <programlisting>jail_<replaceable>www</replaceable>_rootdir="/usr/jail/www" # jail's root directory -jail_<replaceable>www</replaceable>_hostname="<replaceable>www</replaceable>.example.org" # jail's hostname -jail_<replaceable>www</replaceable>_ip="192.168.0.10" # jail's IP address -jail_<replaceable>www</replaceable>_devfs_enable="YES" # mount devfs in the jail -jail_<replaceable>www</replaceable>_devfs_ruleset="<replaceable>www_ruleset</replaceable>" # devfs ruleset to apply to jail</programlisting> +<programlisting> +<replaceable>www</replaceable> { # Name of the jail from jail_list in /etc/rc.conf + host.hostname = <replaceable>www</replaceable>.example.org; # Hostname + ip4.addr = 192.168.0.10; # IP address of the jail + path = "<replaceable>/usr/jail/www</replaceable>"; # Path to the jail + devfs_ruleset = <replaceable>4</replaceable>; # 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 +} +</programlisting> + <para>The default startup of jails configured in &man.rc.conf.5;, will run the <filename>/etc/rc</filename> script of the jail, which assumes the jail is a complete --------------090609050702000606060004--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?530F301B.7030101>