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
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"

Reply via email to