From 532908f6021f5e031cae01aa2374cd62da0200a9 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 14 Jan 2013 11:35:17 -0700 Subject: [PATCH] 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 --- lib/horizon | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/horizon b/lib/horizon index 5d479d5d95..9180370b8d 100644 --- a/lib/horizon +++ b/lib/horizon @@ -138,7 +138,15 @@ function start_horizon() { # 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