1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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:
Mike Makonnen 2003-12-09 08:09:04 +00:00
parent 462fcd56a6
commit 7645a316db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123340

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