summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-07-01 15:30:26 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-07-01 15:30:26 +0200
commit1042a4cc53020ee39ce6ad693588ed01b94c19e7 (patch)
treefb11b21c6fb59045839e4a6eb93566a9fe97fe86 /pykolab
parenta8701c8e873f689ec65b3cfd996f83c48fb39742 (diff)
downloadpykolab-1042a4cc53020ee39ce6ad693588ed01b94c19e7.tar.gz
setup-kolab: wait some seconds after restarting dirsrv (fixes #5137)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_ldap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index 4dd69f5..6a5664e 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -418,6 +418,7 @@ ServerAdminPwd = %(admin_pass)s
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', 'dirsrv.target'])
+ time.sleep(20)
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'dirsrv', 'restart'])
elif os.path.isfile('/usr/sbin/service'):