imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / openldap / files / slapd.init
blob8f43b1573a9344222077725309cb413264667f9a
1 #!/bin/sh
2 #PKG openldap-slapd
3 #INIT 70
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${slapd:-NO}" = x"NO" && exit 0
10 test x"$slapd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 /usr/sbin/slapd
16 stop)
17 if [ -e /var/run/slapd.pid ]; then
18 kill $(cat /var/run/slapd.pid)
21 restart)
22 sh $0 stop
23 sh $0 start
26 echo "Usage: $0 {start | stop | restart}"
27 exit 1
29 esac
30 exit $?