summaryrefslogtreecommitdiffstats
path: root/extra/openldap/slapd
blob: 6a5e7d205bbf17caee35acc3450fd48636c58e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# /etc/rc.d/slapd: start/stop Stand-alone LDAP Daemon
#

SLAPD_PID=/var/openldap/run/slapd.pid

case  in
start)
/usr/sbin/slapd
;;
stop)
if [ -f  ]; then
kill -INT 
else
killall -q /usr/sbin/slapd
fi
;;
restart)
-su stop
sleep 2
-su start
;;
*)
echo "usage: -su [start|stop|restart]"
;;
esac

# End of file