diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2006-06-19 03:15:33 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-06-19 03:15:33 +0000 |
commit | 75433e541e23e4f3be84af955f8cddea4dff826c (patch) | |
tree | 01f3822a7dac05316b1b36fc6f62656a3641be00 /packages/openldap/files | |
parent | eaa20353c4019c5decb223dc24048f1cd9ae6893 (diff) |
openldap: Add initscript
Diffstat (limited to 'packages/openldap/files')
-rw-r--r-- | packages/openldap/files/initscript | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/openldap/files/initscript b/packages/openldap/files/initscript new file mode 100644 index 0000000000..40881cd6d7 --- /dev/null +++ b/packages/openldap/files/initscript @@ -0,0 +1,29 @@ +#! /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
\ No newline at end of file |