diff options
| author | Karel Kočí <cynerd@email.cz> | 2018-12-03 21:11:10 +0100 | 
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2018-12-03 21:11:10 +0100 | 
| commit | ef94ef33fc2729b6340fa22abbd500b4728049da (patch) | |
| tree | 07f28dfd766993308e0de766eaa1207dc1a81f10 /net-nds/openldap/files/slapd-initd | |
| parent | 677325bac4c11638cd75b37fffcf846544ef99b3 (diff) | |
| download | gentoo-personal-overlay-ef94ef33fc2729b6340fa22abbd500b4728049da.tar.gz gentoo-personal-overlay-ef94ef33fc2729b6340fa22abbd500b4728049da.tar.bz2 gentoo-personal-overlay-ef94ef33fc2729b6340fa22abbd500b4728049da.zip | |
openldap: try to add symbol versions
Diffstat (limited to 'net-nds/openldap/files/slapd-initd')
| -rw-r--r-- | net-nds/openldap/files/slapd-initd | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/net-nds/openldap/files/slapd-initd b/net-nds/openldap/files/slapd-initd new file mode 100644 index 0000000..ecd8f65 --- /dev/null +++ b/net-nds/openldap/files/slapd-initd @@ -0,0 +1,29 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { +	need net.lo +	before hald avahi-daemon +} + +start() { +        checkpath -q -d /var/run/openldap/ -o ldap:ldap  +        if ! checkconfig ; then +                eerror "There is a problem with your slapd.conf!" +                return 1 +        fi +	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 $? +} + +checkconfig() {                                                                                                                                                                                                                               +        /usr/sbin/slaptest -u "$@" ${OPTS_CONF}                                                                                                                                                                                               +} | 
