Will that work for a single file? I thought it was for directories.
Regards. Mark K Vallevand mark.vallev...@unisys.com May you live in interesting times, may you come to the attention of important people and may all your wishes come true. THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -----Original Message----- From: Serge Hallyn [mailto:serge.hal...@ubuntu.com] Sent: Thursday, May 23, 2013 2:41 PM To: Vallevand, Mark K Cc: LXC Users Subject: Re: [Lxc-users] Use host syslog socket in container Quoting Vallevand, Mark K (mark.vallev...@unisys.com): > Here is how I got syslog to work with a program running in a container. > After creating a container, do something like this: > > echo syslog setup > cat <<EOF > /etc/rsyslog.d/99-lxc-1.conf > \$AddUnixListenSocket /var/lib/lxc/container1/rootfs/dev/log > EOF > restart rsyslog > > If you are using rsyslog, of course. The rsyslog daemon only supports 100 > unix domain sockets. So, I guess that means 1 for the host /dev/log and 99 > more for containers. > > My program happily uses syslog and they end up in the host syslog. Not sure, but I suspect you also could add a bind mount entry for /dev/log dev/log to /var/lib/lxc/container1/fstab. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users