diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-support/openldap/openldap-2.4.23/initscript | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/openldap/openldap-2.4.23/initscript')
-rw-r--r-- | meta-oe/recipes-support/openldap/openldap-2.4.23/initscript | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/openldap/openldap-2.4.23/initscript b/meta-oe/recipes-support/openldap/openldap-2.4.23/initscript new file mode 100644 index 0000000000..40881cd6d7 --- /dev/null +++ b/meta-oe/recipes-support/openldap/openldap-2.4.23/initscript | |||
@@ -0,0 +1,29 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # This is an init script for openembedded | ||
4 | # Copy it to /etc/init.d/openldap and type | ||
5 | # > update-rc.d openldap defaults 60 | ||
6 | # | ||
7 | |||
8 | |||
9 | slapd=/usr/libexec/slapd | ||
10 | test -x "$slapd" || exit 0 | ||
11 | |||
12 | |||
13 | case "$1" in | ||
14 | start) | ||
15 | echo -n "Starting OpenLDAP: " | ||
16 | start-stop-daemon --start --quiet --exec $slapd | ||
17 | echo "." | ||
18 | ;; | ||
19 | stop) | ||
20 | echo -n "Stopping OpenLDAP: " | ||
21 | start-stop-daemon --stop --quiet --pidfile /var/run/slapd.pid | ||
22 | echo "." | ||
23 | ;; | ||
24 | *) | ||
25 | echo "Usage: /etc/init.d/openldap {start|stop}" | ||
26 | exit 1 | ||
27 | esac | ||
28 | |||
29 | exit 0 \ No newline at end of file | ||