summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/init_slapd.sh
blob: fc1ed16a4cc7592a5a572bda0996ff02b165c119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh 

rm -rf tests/tmp/db
mkdir -p tests/tmp/db

if pidof slapd > /dev/null; then
    killall slapd
fi
sleep 2
if pidof slapd > /dev/null; then
    killall -9 slapd
fi
slapadd -f tests/slapd.conf < tests/init.ldif || exit 1