if we fail to start a jail and jail_foobar_*fs_enable or jail_foobar_mount_enable were set, umount those filesystem before exiting. If we set up an alias for jail's IP, remove that alias before exiting.
MFC after: 2 weeks
This commit is contained in:
parent
e3299095ec
commit
57f8bd5896
@ -227,6 +227,10 @@ jail_start()
|
||||
tail +2 ${_tmp_jail} >${jail_rootdir}/var/log/console.log
|
||||
echo ${_jail_id} > /var/run/jail_${_jail}.id
|
||||
else
|
||||
jail_umount_fs
|
||||
if [ -n "${jail_interface}" ]; then
|
||||
ifconfig ${jail_interface} -alias ${jail_ip}
|
||||
fi
|
||||
echo " cannot start jail \"${_jail}\": "
|
||||
tail +2 ${_tmp_jail}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user