Make apache restarts a little more forgiving

Apache sometimes is slow to release the port which can cause restarts of apache
to fail due to the requested port already being bound. Make use of the function
'restart_apache_server' added to fix #1342256, which introduces a small sleep
between the stop and start to help make apache deployments a bit more resilient.

Closes-Bug: #1358281

Change-Id: Ic4206f24d7bb04b014b3cb179d2303bb301c59d2
This commit is contained in:
Vijayaguru Guruchave 2014-08-18 18:58:27 +05:30
parent 2db878ba2a
commit 40b93ac0ff

View File

@ -73,7 +73,7 @@ function configure_murano_dashboard() {
configure_settings_py
configure_local_settings_py
restart_service $APACHE_NAME
restart_apache_server
}
@ -125,7 +125,7 @@ function init_murano_dashboard() {
python "$horizon_manage_py" collectstatic --noinput
python "$horizon_manage_py" syncdb --noinput
restart_service $APACHE_NAME
restart_apache_server
}