Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/jail
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | if [ -z "$_ip" ] && ! check_kern_features vimage; then | ||||
warn "no ipaddress specified and no vimage support. " \ | warn "no ipaddress specified and no vimage support. " \ | ||||
"Jail $_j was ignored." | "Jail $_j was ignored." | ||||
return 1 | return 1 | ||||
fi | fi | ||||
_conf=/var/run/jail.${_j}.conf | _conf=/var/run/jail.${_j}.conf | ||||
# | # | ||||
# To relieve confusion, show a warning message. | # To relieve confusion, show a warning message. | ||||
# | # | ||||
_confwarn=1 | : ${jail_confwarn:=YES} | ||||
checkyesno jail_confwarn && _confwarn=1 | |||||
if [ -r "$jail_conf" -o -r "$_jconf" ]; then | if [ -r "$jail_conf" -o -r "$_jconf" ]; then | ||||
if ! checkyesno jail_parallel_start; then | if ! checkyesno jail_parallel_start; then | ||||
warn "$_conf is created and used for jail $_j." | warn "$_conf is created and used for jail $_j." | ||||
fi | fi | ||||
fi | fi | ||||
/usr/bin/install -m 0644 -o root -g wheel /dev/null $_conf || return 1 | /usr/bin/install -m 0644 -o root -g wheel /dev/null $_conf || return 1 | ||||
eval : \${jail_${_jv}_flags:=${jail_flags}} | eval : \${jail_${_jv}_flags:=${jail_flags}} | ||||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |