Files
meta-openembedded/meta-oe/recipes-support/openldap/openldap-2.4.23/initscript
Robert Yang f3cfd1b833 meta-oe: fix no newline at end of file
Add a '\n' to the last line of the file to fix:

No newline at end of file

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 14:57:26 +02:00

30 lines
530 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
#
slapd=/usr/libexec/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 "."
;;
*)
echo "Usage: /etc/init.d/openldap {start|stop}"
exit 1
esac
exit 0