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