Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/jails/_index.adoc
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | |||||
* Configure jail parameters in [.filename]#jail.conf#: | * Configure jail parameters in [.filename]#jail.conf#: | ||||
+ | + | ||||
[.programlisting] | [.programlisting] | ||||
.... | .... | ||||
www { | www { | ||||
host.hostname = www.example.org; # Hostname | host.hostname = www.example.org; # Hostname | ||||
ip4.addr = 192.168.0.10; # IP address of the jail | ip4.addr = 192.168.0.10; # IP address of the jail | ||||
path = "/usr/jail/www"; # Path to the jail | path = "/usr/jail/www"; # Path to the jail | ||||
devfs_ruleset = "www_ruleset"; # devfs ruleset | |||||
mount.devfs; # Mount devfs inside the jail | mount.devfs; # Mount devfs inside the jail | ||||
exec.start = "/bin/sh /etc/rc"; # Start command | exec.start = "/bin/sh /etc/rc"; # Start command | ||||
exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command | exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command | ||||
} | } | ||||
.... | .... | ||||
+ | + | ||||
Configure jails to start at boot time in [.filename]#rc.conf#: | Configure jails to start at boot time in [.filename]#rc.conf#: | ||||
▲ Show 20 Lines • Show All 993 Lines • Show Last 20 Lines |