summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/tests/start_slapd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/ldb/tests/start_slapd.sh')
-rwxr-xr-xsource3/lib/ldb/tests/start_slapd.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/lib/ldb/tests/start_slapd.sh b/source3/lib/ldb/tests/start_slapd.sh
new file mode 100755
index 0000000000..22e8548791
--- /dev/null
+++ b/source3/lib/ldb/tests/start_slapd.sh
@@ -0,0 +1,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