Remove error from httpd/apache on unstack.sh
Fedora/RHEL use httpd for the package name of httpd. This is handled
in other parts of the horizon startup code, but not in shutdown.
Change-Id: I2732dad652d83a9cbe055f5f077678b7111ca782
Fixes: bug #1099538
diff --git a/lib/horizon b/lib/horizon
index 5d479d5..9180370 100644
--- a/lib/horizon
+++ b/lib/horizon
@@ -138,7 +138,15 @@
# stop_horizon() - Stop running processes (non-screen)
function stop_horizon() {
- stop_service apache2
+ if is_ubuntu; then
+ stop_service apache2
+ elif is_fedora; then
+ stop_service httpd
+ elif is_suse; then
+ stop_service apache2
+ else
+ exit_distro_not_supported "apache configuration"
+ fi
}
# Restore xtrace