From 3eb2bca22228b4e2b4e189d48f456108ab0a39b2 Mon Sep 17 00:00:00 2001 From: jorton Date: Mon, 7 Feb 2005 15:14:50 +0000 Subject: - fix cosmetic issues in "service httpd reload" - move User/Group higher in httpd.conf (#146793) - load mod_logio by default in httpd.conf - apachectl: update for correct libselinux tools locations --- httpd.init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'httpd.init') 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. -- cgit