Files
meta-openembedded/meta-oe/recipes-support/openldap/openldap-2.4.40/initscript
Roy Li 47ca7a8403 openldap: upgrade to 2.4.20
1. upgrade to 2.4.20
2. remove two backup patches
2. integrate two patches to fix CVE-2015-1545 and CVE-2015-1546
3. disable bdb/hdb backend, since BerkeleyDB 6.0.20+ license is
   incompatible with LDAP

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-28 10:35:16 +02:00

36 lines
633 B
Bash

#! /bin/sh
#
# This is an init script for openembedded
# Copy it to /etc/init.d/openldap and type
# > update-rc.d openldap defaults 60
#
# Source function library.
. /etc/init.d/functions
slapd=/usr/sbin/slapd
test -x "$slapd" || exit 0
case "$1" in
start)
echo -n "Starting OpenLDAP: "
start-stop-daemon --start --quiet --exec $slapd
echo "."
;;
stop)
echo -n "Stopping OpenLDAP: "
start-stop-daemon --stop --quiet --pidfile /var/run/slapd.pid
echo "."
;;
status)
status $slapd;
exit $?
;;
*)
echo "Usage: /etc/init.d/openldap {start|stop|status}"
exit 1
esac
exit 0