~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/lib/ldb/tests/kill_slapd.sh

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh 
 
2
 
 
3
if [ -z "$LDBDIR" ]; then
 
4
    LDBDIR=`dirname $0`/..
 
5
    export LDBDIR
 
6
fi
 
7
 
 
8
if [ -f tests/tmp/slapd.pid ]; then
 
9
    echo "killing slapd process `cat tests/tmp/slapd.pid`"
 
10
    kill -9 `cat tests/tmp/slapd.pid`
 
11
    rm -f tests/tmp/slapd.pid
 
12
fi