Redirect rc(8) output to a file in the jail's /var/log directory.

Previously it was redirected to /dev/null.

Submitted by: phk
This commit is contained in:
mtm 2003-12-09 08:09:04 +00:00
parent 32b9913273
commit 9cc2fb30f2

View File

@ -116,7 +116,7 @@ jail_start()
mount -t procfs proc "${jail_procdir}"
fi
fi
jail 1>/dev/null 2>&1 \
jail 1>${jail_rootdir}/var/log/console.log 2>&1 \
${jail_rootdir} ${jail_hostname} ${jail_ip} ${jail_exec}
[ "$?" -eq 0 ] && echo -n " $jail_hostname"
done