Index: en_US.ISO8859-1/books/handbook/jails/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/handbook/jails/chapter.xml
+++ en_US.ISO8859-1/books/handbook/jails/chapter.xml
@@ -205,17 +205,12 @@
To install the userland from installation media, first
create the root directory for the jail. This can be done by
setting the DESTDIR variable to the proper
- location. The command to use depends on which shell is being
- used.
+ location.
- When using &man.sh.1;:
+ Start a shell and define DESTDIR:
- &prompt.root; export DESTDIR=/here/is/the/jail
-
- If csh/tcsh is used,
- execute this instead:
-
- &prompt.root; setenv DESTDIR /here/is/the/jail
+ &prompt.root; sh
+&prompt.root; export DESTDIR=/here/is/the/jail
Mount the install media as covered in &man.mdconfig.8;
when using the install ISO:
@@ -236,31 +231,17 @@
&prompt.root; /mnt/8.4-RELEASE/base/install.sh
- To install everything but the kernel, issue this
- command:
+ To install everything except the kernel, issue one of these
+ commands:
- When using &man.sh.1; on &os; 9.x and newer, issue this
- command:
+ When using &os; 9.x and newer:
- &prompt.root; for sets in BASE DOC GAMES PORTS; do (tar -xf /mnt/FREEBSD_INSTALL/USR/FREEBSD_DIST/$sets.TXZ -C $DESTDIR) ; done
+ &prompt.root; for sets in BASE PORTS; do tar -xf /mnt/FREEBSD_INSTALL/USR/FREEBSD_DIST/$sets.TXZ -C $DESTDIR ; done
- When using &os; 8.x, run this:
+ When using &os; 8.x:
&prompt.root; cd /mnt/8.4-RELEASE; for dir in base catpages dict doc games info manpages ports; do (cd $dir; ./install.sh) ; done
- If csh/tcsh is used on
- &os; 9.x and newer, execute this command:
-
- &prompt.root; foreach sets ( BASE DOC GAMES PORTS )
-tar -xf /mnt/FREEBSD_INSTALL/USR/FREEBSD_DIST/$sets.TXZ -C $DESTDIR
-done
-
- On &os; 8.x, run this command:
-
- &prompt.root; foreach dir ( base catpages dict doc games info manpages ports )
- cd /mnt/8.4-RELEASE/$dir; ./install.sh
-done
-
The &man.jail.8; manual page explains the procedure for
building a jail:
@@ -390,14 +371,14 @@
&prompt.root; service jail start www
&prompt.root; service jail stop www
- A clean way to shut down a &man.jail.8; is not available at
- the moment. This is because commands normally used to
- accomplish a clean system shutdown cannot be used inside a jail.
- The best way to shut down a jail is to run the following command
- from within the jail itself or using the &man.jexec.8; utility
- from outside the jail:
+ Jails can be shut down with &man.jexec.8;. Use &man.jls.8;
+ to identify the jail's JID, then use
+ &man.jexec.8; to run the shutdown script in that jail.
- &prompt.root; sh /etc/rc.shutdown
+ &prompt.root; jls
+ JID IP Address Hostname Path
+ 3 192.168.0.10 www /usr/jail/www
+&prompt.root; jexec 3 /etc/rc.shutdown
More information about this can be found in the &man.jail.8;
manual page.