diff options
author | mtm <mtm@FreeBSD.org> | 2003-12-09 08:09:04 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-12-09 08:09:04 +0000 |
commit | 9cc2fb30f267309ea4e89a018053f39712ace080 (patch) | |
tree | d98ef101e08ed18f192f78f26ab0ce6752862f09 | |
parent | 32b9913273a9f0a6aea1cd90c55fbdec7f379378 (diff) | |
download | FreeBSD-src-9cc2fb30f267309ea4e89a018053f39712ace080.zip FreeBSD-src-9cc2fb30f267309ea4e89a018053f39712ace080.tar.gz |
Redirect rc(8) output to a file in the jail's /var/log directory.
Previously it was redirected to /dev/null.
Submitted by: phk
-rw-r--r-- | etc/rc.d/jail | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index a4b0f3e..d3059a20 100644 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -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 |