summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_roundcube.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-17 12:59:54 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-17 12:59:54 +0100
commit050f1c8b89073b121d27ff90b885131b88e7c38e (patch)
treeee787cb8eaccc9e28757f1b6956fe3a087421f4c /pykolab/setup/setup_roundcube.py
parent0061e2aab75c2509f4e0cd999723f9faa462fe94 (diff)
downloadpykolab-050f1c8b89073b121d27ff90b885131b88e7c38e.tar.gz
Sleep 2 seconds before attempting to restart the httpd service (#773)
Diffstat (limited to 'pykolab/setup/setup_roundcube.py')
-rw-r--r--pykolab/setup/setup_roundcube.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py
index ad23d6c..5970a65 100644
--- a/pykolab/setup/setup_roundcube.py
+++ b/pykolab/setup/setup_roundcube.py
@@ -24,6 +24,7 @@ import random
import re
import subprocess
import sys
+import time
import components
@@ -170,6 +171,8 @@ def execute(*args, **kw):
p1.stdout.close()
p2.communicate()
+ time.sleep(2)
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])