I considered for a short time installing syslog-ng and connecting /chroot/dev/log to /dev/log but that seemed overkill.
That's until I found out that this works perfectly to connect one fifo to another:
while true; do cat /chroot/dev/log > /dev/log; done
Wow. That's an easy workaround. And it doesn't consume much, the loop only happens when a line is written in the log.
So I wrote a nicer wrapper around this line (97 to be exact), and published it here:
http://www.mayoxide.com/toolbox/log_redirector.sh
Bye
No comments:
Post a Comment