# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
-## Copyright 1998-2006 The OpenLDAP Foundation.
+## Copyright 1998-2011 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
exit $RC
fi
-echo "Running slapadd to create glue entry..."
-. $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf > $CONF2
-#$SLAPADD -f $CONF2 << EODATA
-#dn: dc=example,dc=com
-#objectClass: domain
-#dc: example
-#EODATA
-#RC=$?
-#if test $RC != 0 ; then
-# echo "slapadd failed ($RC)!"
-# test $KILLSERVERS != no && kill -HUP $KILLPIDS
-# exit $RC
-#fi
-
echo "Starting proxy slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf > $CONF2
$SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
PROXYPID=$!
if test $WAIT != 0 ; then
fi
SLEEP=2
-echo "Stopping the provider and sleeping $SLEEP seconds..."
+echo "Stopping the server and sleeping $SLEEP seconds..."
kill -HUP "$SERVERPID"
wait $SERVERPID
sleep $SLEEP