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

Christoph Berg myon at debian.org
Mon Jan 18 14:29:17 UTC 2010


Package: schroot
Version: 1.2.3-1
Severity: wishlist

Hi,

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:


#!/bin/sh

set -e

if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
    . "$CHROOT_SCRIPT_CONFIG"
elif [ "$2" = "ok" ]; then
    echo "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
    exit 1
fi

if [ $1 = "setup-start" ] || [ $1 = "setup-recover" ]; then
    echo "\$AddUnixListenSocket ${CHROOT_PATH}/dev/log" > /etc/rsyslog.d/schroot.conf
    /etc/init.d/rsyslog reload
fi

if [ $1 = "setup-stop" ] ; then
    rm -f /etc/rsyslog.d/schroot.conf
    /etc/init.d/rsyslog reload
fi


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/5a26b786/attachment.pgp>


More information about the Buildd-tools-devel mailing list