diff --git a/elements/apache2/os-refresh-config/post-configure.d/15-apache2 b/elements/apache2/os-refresh-config/post-configure.d/15-apache2 index d8fb68f15..1460cbf79 100755 --- a/elements/apache2/os-refresh-config/post-configure.d/15-apache2 +++ b/elements/apache2/os-refresh-config/post-configure.d/15-apache2 @@ -33,8 +33,9 @@ if [ -f /etc/debian_version ]; then fi # Pick up on any config changes other elements may have done +# if service is not running reload isnt sufficient, so restart if [ -f /etc/debian_version ]; then - service apache2 reload + service apache2 reload || service apache2 restart elif [ -f /etc/yum.conf ]; then - service httpd reload + service httpd reload || service httpd restart fi diff --git a/elements/horizon/install.d/horizon-source-install/100-horizon b/elements/horizon/install.d/horizon-source-install/100-horizon index 5f9af5a9a..cd06d9da2 100755 --- a/elements/horizon/install.d/horizon-source-install/100-horizon +++ b/elements/horizon/install.d/horizon-source-install/100-horizon @@ -5,7 +5,9 @@ install-packages libapache2-mod-wsgi if [ -d /etc/apache2 ]; then ln -s /etc/httpd/conf.d/horizon.conf /etc/apache2/sites-available/horizon.conf - ln -s /etc/httpd/sites-available/horizon.conf /etc/apache2/sites-enabled/horizon.conf + ln -s /etc/httpd/conf.d/horizon.conf /etc/apache2/sites-enabled/horizon.conf + ln -s /var/log/apache2 /var/log/httpd + rm -f /etc/apache2/sites-enabled/{000-default.conf,default.conf,default-ssl.conf} fi os-svc-install -n horizon -u horizon -r /opt/stack/horizon