summaryrefslogtreecommitdiffstats
path: root/ldap_wizard/Ldap.pm
diff options
context:
space:
mode:
Diffstat (limited to 'ldap_wizard/Ldap.pm')
-rw-r--r--ldap_wizard/Ldap.pm4
1 files changed, 3 insertions, 1 deletions
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();
}