diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-05-17 12:59:54 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-05-17 12:59:54 +0100 |
commit | 050f1c8b89073b121d27ff90b885131b88e7c38e (patch) | |
tree | ee787cb8eaccc9e28757f1b6956fe3a087421f4c /pykolab/setup/setup_freebusy.py | |
parent | 0061e2aab75c2509f4e0cd999723f9faa462fe94 (diff) | |
download | pykolab-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.py | 3 |
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']) |