diff options
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 ;; |