mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
eb65ab684d
Changed:
* Move slapd from ${libexecdir} to ${sbin}:
Installing slapd under ${sbin} is more FHS and LSB compliance
* Manage init script by inheriting update-rc.d, than postinst
* Add status for initscript
* Rename the patch named with commit id to
gnutls-Avoid-use-of-deprecated-function.patch
* Add a patch for CVE-2013-4449
* Add a patch to use /dev/urandom for entropy
* Allow tls obtains random bits from /dev/urandom:
The URANDOM_DEVICE is undefined for cross-compiling, define it as
/dev/urandom to allow tls obtains random bits from /dev/urandom.
* Add PACKAGECONFIG for mdb, ndb, relay and sock
* Remove unsupported config for ldbm
* Add license file
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
36 lines
633 B
Bash
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
|