summaryrefslogtreecommitdiffstats
path: root/httpd.init
diff options
context:
space:
mode:
authorjorton <jorton@fedoraproject.org>2005-02-07 15:14:50 +0000
committerjorton <jorton@fedoraproject.org>2005-02-07 15:14:50 +0000
commit3eb2bca22228b4e2b4e189d48f456108ab0a39b2 (patch)
tree4b7e4714c004bdb74a7f153483bcca21aadec492 /httpd.init
parent305e86bbfcf16ebd39e14b7919e93f323d501f81 (diff)
downloadhttpd-3eb2bca22228b4e2b4e189d48f456108ab0a39b2.tar.gz
httpd-3eb2bca22228b4e2b4e189d48f456108ab0a39b2.tar.xz
httpd-3eb2bca22228b4e2b4e189d48f456108ab0a39b2.zip
- fix cosmetic issues in "service httpd reload"httpd-2_0_52-7
- move User/Group higher in httpd.conf (#146793) - load mod_logio by default in httpd.conf - apachectl: update for correct libselinux tools locations
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.