diff --git a/ldap.init b/ldap.init index 8fba823..6d1eff2 100644 --- a/ldap.init +++ b/ldap.init @@ -16,7 +16,7 @@ # Source networking configuration and check that networking is up. if [ -r /etc/sysconfig/network ] ; then . /etc/sysconfig/network - [ ${NETWORKING} = "no" ] && exit 0 + [ ${NETWORKING} = "no" ] && exit 1 fi # Source an auxiliary options file if we have one, and pick up OPTIONS, @@ -29,8 +29,8 @@ fi slapd=/usr/sbin/slapd slurpd=/usr/sbin/slurpd slaptest=/usr/sbin/slaptest -[ -x ${slapd} ] || exit 0 -[ -x ${slurpd} ] || exit 0 +[ -x ${slapd} ] || exit 1 +[ -x ${slurpd} ] || exit 1 RETVAL=0 @@ -213,24 +213,33 @@ case "$1" in ;; start) start + RETVAL=$? ;; stop) stop + RETVAL=$? ;; status) status ${slapd} + RETVAL=$? if grep -q "^replogfile" /etc/openldap/slapd.conf ; then status ${slurpd} + RET=$? + if [ $RET -ne 0 ] ; then + RETVAL=$RET; + fi fi ;; restart) stop start + RETVAL=$? ;; condrestart) if [ -f /var/lock/subsys/ldap ] ; then stop start + RETVAL=$? fi ;; *) diff --git a/openldap.spec b/openldap.spec index 78b5220..5c17e3a 100644 --- a/openldap.spec +++ b/openldap.spec @@ -738,6 +738,9 @@ fi %attr(0644,root,root) %{evolution_connector_libdir}/*.a %changelog +* Mon Jun 25 2007 Jan Safranek +- Fix initscript return codes (#242667) + * Tue May 22 2007 Jan Safranek 2.3.34-3%{?dist} - do not create script in /tmp on startup (bz#188298) - add compat-slapcat to openldap-compat (bz#179378)