diff options
Diffstat (limited to 'net-nds/openldap/files/slapd-initd')
-rw-r--r-- | net-nds/openldap/files/slapd-initd | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net-nds/openldap/files/slapd-initd b/net-nds/openldap/files/slapd-initd index 723bfcf74831..cc2e8b7e8a1b 100644 --- a/net-nds/openldap/files/slapd-initd +++ b/net-nds/openldap/files/slapd-initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd,v 1.5 2013/01/14 02:30:20 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd,v 1.6 2013/01/15 03:53:28 patrick Exp $ depend() { need net.lo @@ -10,7 +10,7 @@ depend() { start() { checkpath -q -d /var/run/openldap/ -o ldap:ldap - if ! checkconfig -Q ; then + if ! checkconfig ; then eerror "There is a problem with your slapd.conf!" return 1 fi @@ -24,3 +24,7 @@ stop() { start-stop-daemon --stop --signal 2 --quiet --pidfile /var/run/openldap/slapd.pid eend $? } + +checkconfig() { + /usr/sbin/slaptest -u "$@" ${OPTS_CONF} +} |