diff options
Diffstat (limited to 'net-nds/openldap/files/slapd-initd2')
-rw-r--r-- | net-nds/openldap/files/slapd-initd2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-nds/openldap/files/slapd-initd2 b/net-nds/openldap/files/slapd-initd2 new file mode 100644 index 000000000000..743031281925 --- /dev/null +++ b/net-nds/openldap/files/slapd-initd2 @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net + before dbus hald avahi-daemon + provide ldap +} + +start() { + ebegin "Starting ldap-server" + eval start-stop-daemon --start --pidfile /var/run/openldap/slapd.pid --exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}" + eend $? +} + +stop() { + ebegin "Stopping ldap-server" + start-stop-daemon --stop --signal 2 --quiet --pidfile /var/run/openldap/slapd.pid + eend $? +} |