Browse code

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

Steven Dake authored on 2013/01/15 03:35:17
Showing 1 changed files
... ...
@@ -138,7 +138,15 @@ function start_horizon() {
138 138
 
139 139
 # stop_horizon() - Stop running processes (non-screen)
140 140
 function stop_horizon() {
141
-    stop_service apache2
141
+    if is_ubuntu; then
142
+        stop_service apache2
143
+    elif is_fedora; then
144
+        stop_service httpd
145
+    elif is_suse; then
146
+        stop_service apache2
147
+    else
148
+        exit_distro_not_supported "apache configuration"
149
+    fi
142 150
 }
143 151
 
144 152
 # Restore xtrace