freebsd-skq/crypto/heimdal/tests/ldap/slapd-stop
2008-05-07 13:39:42 +00:00

19 lines
267 B
Bash

#!/bin/sh
# $Id: slapd-stop 20220 2007-02-15 00:11:18Z lha $
echo stoping slapd
# kill of old slapd
if [ -f slapd.pid ]; then
kill `cat slapd.pid`
sleep 5
fi
if [ -f slapd.pid ]; then
kill -9 `cat slapd.pid`
rm -f slapd.pid
sleep 5
fi
exit 0