diff -Nur e-smith-ldap-5.2.0/root/etc/rc.d/init.d/ldap.init e-smith-ldap-5.2.0-slap_init/root/etc/rc.d/init.d/ldap.init --- e-smith-ldap-5.2.0/root/etc/rc.d/init.d/ldap.init 2013-02-22 18:53:49.698942361 +0100 +++ e-smith-ldap-5.2.0-slap_init/root/etc/rc.d/init.d/ldap.init 2013-02-22 18:55:40.572988472 +0100 @@ -34,7 +34,8 @@ for i in $(seq 1 10) do - if [ $(/usr/bin/pgrep -f slapd | wc -l) -ge 1 ] + /usr/bin/ldapwhoami -x > /dev/null 2>&1 + if [ $? = 0 ] then exit_value=0 for link in $((echo /etc/e-smith/ldap/init/50bootstrap; find /etc/e-smith/ldap/init -type f -o -type l) | sort)