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:
matteo 2006-05-11 13:29:01 +00:00
parent e3299095ec
commit 57f8bd5896

View File

@ -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