summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/tests/start_slapd.sh
blob: 22e8548791a80c5cf948a9939f2fb812715fab51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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