diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-12 21:11:44 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-12 21:11:44 +0000 |
commit | 2c1d2d83bd3c71a1a6d1dc13c1a08b7f29e577d4 (patch) | |
tree | 71b453da62e4ced3e98718f5d8ecf50e4add7ae4 /net-nds/openldap/files/slapd-initd-2.4.28-r1 | |
parent | Version bump pypy to 1.8. (diff) | |
download | gentoo-2-2c1d2d83bd3c71a1a6d1dc13c1a08b7f29e577d4.tar.gz gentoo-2-2c1d2d83bd3c71a1a6d1dc13c1a08b7f29e577d4.tar.bz2 gentoo-2-2c1d2d83bd3c71a1a6d1dc13c1a08b7f29e577d4.zip |
Bug #322787: Fix false positve on USE=minimal build safety. Bug #322535: Samba4 overlay support. Bug #337717: missing groff DEPEND. Bug #340987: back-ldbm was removed in the 2.4.x branch. Bug #342439: Connectionless LDAP support. Bug #350295: Clarify slapd.conf vs slapd.d configuration methods. Bug #294350: NTLM auth support for evolution client. Bug #302310: rfc2307bis schema. Bug #302960: slaptest the configuration on startup.
(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
Diffstat (limited to 'net-nds/openldap/files/slapd-initd-2.4.28-r1')
-rw-r--r-- | net-nds/openldap/files/slapd-initd-2.4.28-r1 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-nds/openldap/files/slapd-initd-2.4.28-r1 b/net-nds/openldap/files/slapd-initd-2.4.28-r1 new file mode 100644 index 000000000000..712518d842d6 --- /dev/null +++ b/net-nds/openldap/files/slapd-initd-2.4.28-r1 @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd-2.4.28-r1,v 1.1 2012/02/12 21:11:44 robbat2 Exp $ + +extra_commands="checkconfig" + +depend() { + need net + before dbus hald avahi-daemon + provide ldap +} + +start() { + if ! checkconfig -Q ; then + eerror "There is a problem with your slapd.conf!" + return 1 + fi + ebegin "Starting ldap-server" + [ -n "$KRB5_KTNAME" ] && export KRB5_KTNAME + 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 $? +} + +checkconfig() { + /usr/sbin/slaptest -u "$@" ${OPTS_CONF} +} |