summaryrefslogtreecommitdiffstats
path: root/httpd.init
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.init')
-rwxr-xr-xhttpd.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/httpd.init b/httpd.init
index 0624e06..40e63fb 100755
--- a/httpd.init
+++ b/httpd.init
@@ -73,15 +73,15 @@ stop() {
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
- if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t; then
- failure $"Configuration syntax check for $httpd, will not reload"
+ echo -n $"Reloading $prog: "
+ if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
RETVAL=$?
+ failure $"not reloading $httpd due to configuration syntax error"
else
- echo -n $"Reloading $prog: "
killproc $httpd -HUP
RETVAL=$?
- echo
fi
+ echo
}
# See how we were called.