diff options
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 | ||