summaryrefslogtreecommitdiffstats
path: root/pykolab
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 13:00:28 +0100
commitb459ff1ff9a86a27c9008ad1cc2bff586e7b725c (patch)
treeb6d60779b56501ef11729b61946c7396b789b09c /pykolab
parentc2a9e61860543d0d44e48fdf6c0eb97123e2981b (diff)
downloadpykolab-b459ff1ff9a86a27c9008ad1cc2bff586e7b725c.tar.gz
Sleep 2 seconds before attempting to restart the httpd service (#773)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_freebusy.py3
-rw-r--r--pykolab/setup/setup_roundcube.py3
-rw-r--r--pykolab/setup/setup_zpush.py3
3 files changed, 9 insertions, 0 deletions
diff --git a/pykolab/setup/setup_freebusy.py b/pykolab/setup/setup_freebusy.py
index 3b522f1..22c74c4 100644
--- a/pykolab/setup/setup_freebusy.py
+++ b/pykolab/setup/setup_freebusy.py
@@ -21,6 +21,7 @@ from Cheetah.Template import Template
import os
import subprocess
import sys
+import time
import components
@@ -106,6 +107,8 @@ def execute(*args, **kw):
fp.write(t.__str__())
fp.close()
+ time.sleep(2)
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])
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'])
diff --git a/pykolab/setup/setup_zpush.py b/pykolab/setup/setup_zpush.py
index 01739c3..3aa7a0b 100644
--- a/pykolab/setup/setup_zpush.py
+++ b/pykolab/setup/setup_zpush.py
@@ -21,6 +21,7 @@ from Cheetah.Template import Template
import os
import subprocess
import sys
+import time
import components
@@ -85,6 +86,8 @@ def execute(*args, **kw):
fp.write(t.__str__())
fp.close()
+ time.sleep(2)
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])