2013-07-22 19:04:27 +02:00
|
|
|
--- httpd-2.4.6.orig/support/apachectl.in
|
|
|
|
+++ httpd-2.4.6/support/apachectl.in
|
2012-08-01 03:54:19 +02:00
|
|
|
@@ -42,17 +42,32 @@ ARGV="$@"
|
2006-12-20 18:01:15 +01:00
|
|
|
# -------------------- --------------------
|
|
|
|
#
|
|
|
|
# the path to your httpd binary, including options if necessary
|
|
|
|
-HTTPD='@exp_sbindir@/@progname@'
|
|
|
|
+HTTPD='@exp_sbindir@/httpd2'
|
|
|
|
#
|
|
|
|
# pick up any necessary environment variables
|
|
|
|
if test -f @exp_sbindir@/envvars; then
|
|
|
|
. @exp_sbindir@/envvars
|
|
|
|
fi
|
|
|
|
+
|
|
|
|
+pname=apache2
|
|
|
|
+sysconfig_apache=/etc/sysconfig/$pname
|
|
|
|
+sysconfdir=/etc/$pname
|
|
|
|
+
|
|
|
|
+test -s $sysconfig_apache && source $sysconfig_apache
|
|
|
|
+httpd_conf=${APACHE_HTTPD_CONF:-$sysconfdir/httpd.conf}
|
|
|
|
+
|
|
|
|
#
|
|
|
|
# a command that outputs a formatted text version of the HTML at the
|
|
|
|
# url given on the command line. Designed for lynx, however other
|
|
|
|
# programs may work.
|
|
|
|
-LYNX="@LYNX_PATH@ -dump"
|
|
|
|
+
|
|
|
|
+if [ -x "`which w3m`" ]; then
|
|
|
|
+ LYNX="w3m -dump -cols ${COLUMNS:-80}"
|
|
|
|
+elif [ -x "`which lynx`" ]; then
|
|
|
|
+ LYNX="lynx -dump -width=${COLUMNS:-80}"
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+
|
|
|
|
#
|
|
|
|
# the URL to your server's mod_status status page. If you do not
|
|
|
|
# have one, then status and fullstatus will not work.
|
2012-08-01 03:54:19 +02:00
|
|
|
@@ -78,7 +93,7 @@ fi
|
2006-12-20 18:01:15 +01:00
|
|
|
|
2012-08-01 03:54:19 +02:00
|
|
|
case $ACMD in
|
2006-12-20 18:01:15 +01:00
|
|
|
start|stop|restart|graceful|graceful-stop)
|
|
|
|
- $HTTPD -k $ARGV
|
|
|
|
+ $HTTPD ${httpd_conf+-f $httpd_conf} -k $ARGV
|
|
|
|
ERROR=$?
|
|
|
|
;;
|
|
|
|
startssl|sslstart|start-SSL)
|
2012-08-01 03:54:19 +02:00
|
|
|
@@ -88,7 +103,7 @@ startssl|sslstart|start-SSL)
|
2006-12-20 18:01:15 +01:00
|
|
|
ERROR=2
|
|
|
|
;;
|
|
|
|
configtest)
|
|
|
|
- $HTTPD -t
|
|
|
|
+ $HTTPD ${httpd_conf+-f $httpd_conf} -t
|
|
|
|
ERROR=$?
|
|
|
|
;;
|
|
|
|
status)
|