/[smeserver]/rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-wait_slapd_initialization.patch
ViewVC logotype

Contents of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-wait_slapd_initialization.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Feb 22 18:09:25 2013 UTC (11 years, 2 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-ldap-5_2_0-81_el5_sme, e-smith-ldap-5_2_0-80_el5_sme, HEAD
* 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 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 RSS 2.0 feed