summaryrefslogtreecommitdiffstats
path: root/httpd.init
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 06:21:42 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 06:21:42 +0000
commit53326aac4e0dbd665f6df1db0ae1445bc8b0d557 (patch)
treebe23ed495321ce173fb2d792e0829cd472c31964 /httpd.init
parent55c3338e5128c411f333358870978f299469141b (diff)
auto-import changelog data from httpd-2.0.50-4.src.rpmhttpd-2_0_50-4
Tue Aug 17 2004 Joe Orton <jorton@redhat.com> 2.0.50-4 - start httpd in the C locale by default (#128002) - fix CustomLog comments in default httpd.conf (#43223) - ensure correct mod_suexec vs mod_userdir hook ordering (Joshua Slive, upstream #18156)
Diffstat (limited to 'httpd.init')
-rwxr-xr-xhttpd.init7
1 files changed, 5 insertions, 2 deletions
diff --git a/httpd.init b/httpd.init
index 698c66f..d705aba 100755
--- a/httpd.init
+++ b/httpd.init
@@ -17,6 +17,9 @@ if [ -f /etc/sysconfig/httpd ]; then
. /etc/sysconfig/httpd
fi
+# Start httpd in the C locale by default.
+HTTPD_LANG=${HTTPD_LANG-"C"}
+
# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""
@@ -39,7 +42,7 @@ check13 () {
GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
GONE="${GONE}AccessConfig|ResourceConfig)"
- if grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
+ if LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
echo
echo 1>&2 " Apache 1.3 configuration directives found"
echo 1>&2 " please read @docdir@/migration.html"
@@ -56,7 +59,7 @@ check13 () {
start() {
echo -n $"Starting $prog: "
check13 || exit 1
- daemon $httpd $OPTIONS
+ LANG=$HTTPD_LANG daemon $httpd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}