Files
wmic/Samba/source/lib/ldb/tests/start_slapd.sh
T

15 lines
305 B
Bash
Raw Normal View History

2019-02-16 00:16:52 +01:00
#!/bin/sh
if [ -z "$LDBDIR" ]; then
LDBDIR=`dirname $0`/..
export LDBDIR
fi
mkdir -p $LDBDIR/tests/tmp/db
# running slapd with -d0 means it stays in the same process group, so it can be
# killed by timelimit
slapd -d0 -f $LDBDIR/tests/slapd.conf -h "`$LDBDIR/tests/ldapi_url.sh`" $* &
sleep 2