[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#349709: Support for custom arguments



I recently ran into this problem and made a very similar patch to change the $HTTPD calls for start & configtest to include $APACHE_ARGUMENTS (if it exists) so we can add a few needed defines in /etc/apache2/envvars (e.g. -DTEST_SITE vs. -DPRODUCTION_SITE so we can share a common Apache config file for our development and production servers).

--- a2old       2007-08-10 11:48:39.946307000 -0700
+++ /usr/sbin/apache2ctl        2007-08-10 11:48:09.000000000 -0700
@@ -77,7 +77,7 @@
case $ARGV in
start|stop|restart|graceful|graceful-stop)
-    $HTTPD -k $ARGV
+    $HTTPD ${APACHE_ARGUMENTS:=} -k $ARGV
     ERROR=$?
     ;;
startssl|sslstart|start-SSL)
@@ -87,7 +87,7 @@
     ERROR=2
     ;;
configtest)
-    $HTTPD -t
+    $HTTPD ${APACHE_ARGUMENTS:=} -t
     ERROR=$?
     ;;
status)

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Reply to: