summaryrefslogtreecommitdiff
path: root/lib/ldb/tests/start_slapd.sh
blob: 11679d47a3ea6f7382c237326d3c93cd7dd8402a (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 in the background (with &) 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