diff options
author | Markus Ullmann <jokey@gentoo.org> | 2010-04-11 15:14:48 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2010-04-11 15:14:48 +0000 |
commit | c8b2be24be66c7ae9db47db84625d584f43c0aa9 (patch) | |
tree | feb91020d9cadfc340af37aff46802b0b7fd3762 /net-nds/openldap/files/slapd-initd2 | |
parent | Version bump (diff) | |
download | gentoo-2-c8b2be24be66c7ae9db47db84625d584f43c0aa9.tar.gz gentoo-2-c8b2be24be66c7ae9db47db84625d584f43c0aa9.tar.bz2 gentoo-2-c8b2be24be66c7ae9db47db84625d584f43c0aa9.zip |
Version bump to upstream recommended version, fix bugs #296567, #306807
and #306623. Thanks to Andreas Kimpfler, steveb and Mike Hiretsky
(Portage version: 2.2_rc67/cvs/Linux x86_64)
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..26e434471394 --- /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 +# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd2,v 1.1 2010/04/11 15:14:48 jokey Exp $ + +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 $? +} |