append logs

This commit is contained in:
Pierangelo Masarati 2006-09-04 08:29:47 +00:00
parent 84d6a04c91
commit d25dfcbe92
2 changed files with 12 additions and 2 deletions

View file

@ -17,8 +17,9 @@ echo "Using $RELAY backend..."
echo ""
echo "Starting slapd on TCP/IP port $PORT1..."
echo "======== Starting slapd with $RELAY backend ========" >> $LOG1
. $CONFFILTER $BACKEND $MONITORDB < $RELAYCONF > $CONF1
$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
PID=$!
if test $WAIT != 0 ; then
echo PID $PID

View file

@ -73,6 +73,10 @@ fi
echo "Testing virtual naming context mapping with $RELAYS backend(s)..."
echo ""
tmpfile=savelog.log
if test -f $tmpfile ; then
rm -f $tmpfile
fi
first=1
for RELAY in $RELAYS ; do
RUNIT=yes
@ -92,11 +96,16 @@ for RELAY in $RELAYS ; do
echo ">>>>> waiting for things to exit"
test $KILLSERVERS != no && wait
echo ""
mv -f $LOG1 $tmpfile
rm -rf $TESTDIR
fi
mkdir -p $TESTDIR $DBDIR1
if test -f $tmpfile ; then
mv $tmpfile $LOG1
fi
. $SRCDIR/scripts/relay
fi