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

export PATH=/usr/sbin:$PATH

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