- New style of jail(8) usage requires "-c" argument to create a jail.

Reviewed by:	jamie
This commit is contained in:
kuriyama 2009-11-26 03:26:59 +00:00
parent 2b75c75011
commit 68687f294d

View File

@ -561,7 +561,7 @@ or for running a virtual server.
Start a shell in the jail:
.Pp
.Bd -literal -offset indent
jail path=/data/jail/192.0.2.100 host.hostname=testhostname \\
jail -c path=/data/jail/192.0.2.100 host.hostname=testhostname \\
ip4.addr=192.0.2.100 command=/bin/sh
.Ed
.Pp
@ -636,7 +636,7 @@ script from within the jail.
.Bd -literal -offset indent
ifconfig ed0 inet alias 192.0.2.100/32
mount -t procfs proc /data/jail/192.0.2.100/proc
jail path=/data/jail/192.0.2.100 host.hostname=testhostname \\
jail -c path=/data/jail/192.0.2.100 host.hostname=testhostname \\
ip4.addr=192.0.2.100 command=/bin/sh /etc/rc
.Ed
.Pp