diff options
author | Florian Pritz <bluewind@xssn.at> | 2009-11-09 21:18:45 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2009-11-09 21:24:24 +0100 |
commit | 1ca076ad98100f78fd72d9eb99652d064408d6f9 (patch) | |
tree | e2cc67c4eb610969a12ddb5f33c53cdfdcc182a0 /apache/httpd | |
parent | 96ec78e0ae607e5e0732a4af08a204499b879f02 (diff) | |
download | aur-packages-1ca076ad98100f78fd72d9eb99652d064408d6f9.tar.gz aur-packages-1ca076ad98100f78fd72d9eb99652d064408d6f9.tar.xz |
apache update
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'apache/httpd')
-rwxr-xr-x[-rw-r--r--] | apache/httpd | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apache/httpd b/apache/httpd index fa84eff..46ead71 100644..100755 --- 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 ;; |