fi
[ -z "$HTTPD_MPM" ] && HTTPD_MPM="prefork"
-if [ -d "${HTTPD_CONF:-'/etc/httpd/httpd.conf'}" ]; then
+if [ -d "${HTTPD_CONF:-'/etc/httpd/httpd.conf'}" ]; then
CFG="-f ${HTTPD_CONF:-'/etc/httpd/httpd.conf'}"
elif [ -n "$HTTPD_CONF" ]; then
echo "error: HTTPD_CONF='$HTTPD_CONF': not a file, not a directory"
if [ -f /var/lock/subsys/httpd ]; then
msg_stopping httpd.${HTTPD_MPM}
daemon --waitforname httpd.${HTTPD_MPM} --waitfortime 60 httpd.${HTTPD_MPM} $CFG -k stop
- RETVAL=$?
+ RET=$?
# Delete pidfile only when apache was called successfully
- if [ $RETVAL -eq 0 ]; then
+ if [ $RET -eq 0 ]; then
rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc* >/dev/null 2>&1
fi
else
httpd.${HTTPD_MPM} $CFG -t > /dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
- daemon httpd.${HTTPD_MPM} $CFG -k graceful
+ daemon httpd.${HTTPD_MPM} $CFG -k graceful
else
- fail
- echo "Configuration file syntax test failed."
+ fail
+ echo "Configuration file syntax test failed."
fi
else
msg_not_running httpd.${HTTPD_MPM} >&2