From 0ff2f580eb2327acbea9dcb447c0f503e5db2c41 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 8 Sep 2004 09:16:24 +0000 Subject: - add a sleep, to be sure that ldap is up ( thanks Buchan Milne ) --- ldap_wizard/Ldap.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm index 2db6b7d1..a9b6dc9d 100644 --- a/ldap_wizard/Ldap.pm +++ b/ldap_wizard/Ldap.pm @@ -338,7 +338,9 @@ EOF # reset premisions system("chown -R root.ldap /etc/openldap"); - system("service ldap restart"); + # better use status, maybe ? + services::restart('ldap'); + sleep(4); init_ldap(); } -- cgit v1.2.1