File: slapd-stop

package info (click to toggle)
heimdal 1.6~git20120403%2Bdfsg1-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 34,428 kB
  • sloc: ansic: 338,234; sh: 7,993; makefile: 4,671; yacc: 3,036; perl: 1,888; python: 748; lex: 731; awk: 465; java: 119; asm: 30; lisp: 29
file content (18 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh 
# $Id$

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