blob: 910bf4b336c443500e57dc1a479119c438a31fa7 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/slapd: start/stop Stand-alone LDAP Daemon
4 #
5
6 SLAPD_PID=/var/openldap/run/slapd.pid
7
8 case $1 in
9 start)
10 /usr/sbin/slapd
11 ;;
12 stop)
13 if [ -f $SLAPD_PID ]; then
14 kill -INT `head -1 $SLAPD_PID`
15 else
16 killall -q /usr/sbin/slapd
17 fi
18 ;;
19 restart)
20 $0 stop
21 sleep 2
22 $0 start
23 ;;
24 *)
25 echo "usage: $0 [start|stop|restart]"
26 ;;
27 esac
28
29 # End of file
|