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

Reviewed by:	jamie
This commit is contained in:
Jun Kuriyama 2009-11-26 03:26:59 +00:00
parent 8af26c5e86
commit ce8ad96abe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199818

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