[buildd-tools-devel] Bug#565745: Bug#565745: Syslog-Socket /dev/log in chroots

Christoph Berg myon at debian.org
Mon Jan 18 15:07:31 UTC 2010


Re: Roger Leigh 2010-01-18 <20100118144108.GF3781 at codelibre.net>
> On Mon, Jan 18, 2010 at 03:29:17PM +0100, Christoph Berg wrote:
> > it would be nice if schroot set up an syslog socket in the chroot, at
> > least for rsyslog. Here's a coarse script that works for me:
> 
> This does look really neat.  I'm a little apprehensive about
> modifying /etc during normal system operation though; does
> rsyslog allow addition of sockets at runtime via another
> interface, or placement of the files under /var?

/etc/rsyslog.conf:
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

I guess /etc/rsyslog.d/schroot.conf should just read

$IncludeConfig /var/lib/schroot/rsyslogd-interface.d/*.conf

which then could contain $UUID.conf files, or similar.

Btw, about robustness, rsyslogd doesn't mind if the socket directory
disappears or something. I did some stress-testing when adding a
socket for postfix in /etc/rsyslog.d/postfix.conf, and it wouldn't
break even if postfix was uninstalled. (Not so sure about the conf
directory.)

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100118/af18009c/attachment.pgp>


More information about the Buildd-tools-devel mailing list