Parent Directory | Revision Log | Revision Graph
* Fri Feb 23 2013 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-80.sme - Wait for slapd to be ready before running bootstrap-ldap-save [SME: 7394]
1 | vip-ire | 1.1 | 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 |
2 | --- e-smith-ldap-5.2.0/root/etc/rc.d/init.d/ldap.init 2013-02-22 18:53:49.698942361 +0100 | ||
3 | +++ e-smith-ldap-5.2.0-slap_init/root/etc/rc.d/init.d/ldap.init 2013-02-22 18:55:40.572988472 +0100 | ||
4 | @@ -34,7 +34,8 @@ | ||
5 | |||
6 | for i in $(seq 1 10) | ||
7 | do | ||
8 | - if [ $(/usr/bin/pgrep -f slapd | wc -l) -ge 1 ] | ||
9 | + /usr/bin/ldapwhoami -x > /dev/null 2>&1 | ||
10 | + if [ $? = 0 ] | ||
11 | then | ||
12 | exit_value=0 | ||
13 | for link in $((echo /etc/e-smith/ldap/init/50bootstrap; find /etc/e-smith/ldap/init -type f -o -type l) | sort) |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |