|
Lines 373-378
Link Here
|
| 373 |
<para>For a full list of available options, please see the |
373 |
<para>For a full list of available options, please see the |
| 374 |
&man.rc.conf.5; manual page.</para> |
374 |
&man.rc.conf.5; manual page.</para> |
| 375 |
</note> |
375 |
</note> |
|
|
376 |
|
| 377 |
<note> |
| 378 |
<para>From FreeBSD 9.1 and above the recommended way is to place the jail settings in <filename>/etc/jail.conf</filename> (see &man.jail.conf.5;). |
| 379 |
For example a jail config similar to above would look like this in <filename>/etc/jail.conf</filename>. |
| 380 |
<programlisting> |
| 381 |
<replaceable>www</replaceable> { # Name of the jail from jail_list in /etc/rc.conf |
| 382 |
host.hostname = <replaceable>www</replaceable>.example.org; # Hostname |
| 383 |
ip4.addr = 192.168.0.10; # IP address of the jail |
| 384 |
path = "<replaceable>/usr/jail/www</replaceable>"; # Path to the jail |
| 385 |
devfs_ruleset = <replaceable>www_ruleset</replaceable>; # DevFS ruleset |
| 386 |
mount.devfs; # Mount devfs inside the jail |
| 387 |
exec.start = "/bin/sh /etc/rc"; # Start command to run |
| 388 |
exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command to run to stop the jail |
| 389 |
} |
| 390 |
</programlisting> |
| 391 |
</para> |
| 392 |
</note> |
| 393 |
|
| 394 |
|
| 376 |
</step> |
395 |
</step> |
| 377 |
</procedure> |
396 |
</procedure> |