summaryrefslogtreecommitdiffstats
path: root/support/apachectl.in
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-12-15 14:56:36 +0100
committerJeff Trawick <trawick@apache.org>2001-12-15 14:56:36 +0100
commit7dc8e9bfabb8ab5f67aadf91a615099eba22d503 (patch)
tree8c654e9867576b9758ade893e5691b56171eb153 /support/apachectl.in
parentFixed the logic for detecting sentinel or EOS in send_parsed_content (diff)
downloadapache2-7dc8e9bfabb8ab5f67aadf91a615099eba22d503.tar.xz
apache2-7dc8e9bfabb8ab5f67aadf91a615099eba22d503.zip
Move any load library path environment variables out of
apachectl and into a separate environment variable file which can be more easily tailored by the admin. The environment variable file as built by Apache may have additional system- specific settings. For example, on OS/390 we tailor the heap settings to allow lots of threads. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92490 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/apachectl.in')
-rw-r--r--support/apachectl.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/support/apachectl.in b/support/apachectl.in
index e948f91712..b1cbb51be0 100644
--- a/support/apachectl.in
+++ b/support/apachectl.in
@@ -20,6 +20,7 @@
# When multiple arguments are given, only the error from the _last_
# one is reported. Run "apachectl help" for usage info
#
+ARGV="$@"
#
# |||||||||||||||||||| START CONFIGURATION SECTION ||||||||||||||||||||
# -------------------- --------------------
@@ -30,10 +31,10 @@ PIDFILE=@prefix@/logs/@progname@.pid
# the path to your httpd binary, including options if necessary
HTTPD='@prefix@/bin/@progname@'
#
-# the following lines are automatically uncommented for
-# binary builds
-#binbuild @SHLIBPATH_VAR@='@prefix@/lib/:$@SHLIBPATH_VAR@'
-#binbuild export @SHLIBPATH_VAR@
+# pick up any necessary environment variables
+if test -f @prefix@/bin/envvars; then
+ . @prefix@/bin/envvars
+fi
#
# a command that outputs a formatted text version of the HTML at the
# url given on the command line. Designed for lynx, however other
@@ -48,12 +49,11 @@ STATUSURL="http://localhost:@PORT@/server-status"
# |||||||||||||||||||| END CONFIGURATION SECTION ||||||||||||||||||||
ERROR=0
-ARGV="$@"
if [ "x$ARGV" = "x" ] ; then
ARGS="help"
fi
-for ARG in $@ $ARGS
+for ARG in $ARGV $ARGS
do
# check for pidfile
if [ -f $PIDFILE ] ; then