summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_freebusy.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_freebusy.py
parent0061e2aab75c2509f4e0cd999723f9faa462fe94 (diff)
downloadpykolab-050f1c8b89073b121d27ff90b885131b88e7c38e.tar.gz
Sleep 2 seconds before attempting to restart the httpd service (#773)
Diffstat (limited to 'pykolab/setup/setup_freebusy.py')
-rw-r--r--pykolab/setup/setup_freebusy.py3
1 files changed, 3 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'])