summaryrefslogtreecommitdiffstats
path: root/lib/ldb/tests/start_slapd.sh
blob: 4a4a35ea9c62dff072a8ac54da504681422d3c0d (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