From 1ca076ad98100f78fd72d9eb99652d064408d6f9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 9 Nov 2009 21:18:45 +0100 Subject: apache update Signed-off-by: Florian Pritz --- apache/httpd | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 apache/httpd (limited to 'apache/httpd') diff --git a/apache/httpd b/apache/httpd old mode 100644 new mode 100755 index fa84eff..46ead71 --- a/apache/httpd +++ b/apache/httpd @@ -8,7 +8,7 @@ daemon_name=httpd case "$1" in start) - stat_busy "Starting $daemon_name daemon" + stat_busy "Starting Apache Web Server" # RUN /usr/sbin/apachectl start &>/dev/null # @@ -22,7 +22,7 @@ case "$1" in ;; stop) - stat_busy "Stopping $daemon_name daemon" + stat_busy "Stopping Apache Web Server" # KILL /usr/sbin/apachectl stop &>/dev/null # @@ -36,7 +36,8 @@ case "$1" in ;; reload) - stat_busy "Reloading $daemon_name daemon" + apachectl -t || exit 1 + stat_busy "Reloading Apache Web Server" /usr/sbin/apachectl graceful &>/dev/null if [ $? -gt 0 ]; then stat_fail @@ -48,7 +49,8 @@ case "$1" in ;; restart) - stat_busy "Restarting $daemon_name daemon" + apachectl -t || exit 1 + stat_busy "Restarting Apache Web Server" /usr/sbin/apachectl restart &>/dev/null if [ $? -gt 0 ]; then stat_fail @@ -60,7 +62,7 @@ case "$1" in ;; status) - stat_busy "Checking $daemon_name status"; + stat_busy "Checking Apache Web Server status"; ck_status $daemon_name ;; -- cgit v1.2.3-24-g4f1b