>Number: 5021
>Category: config
>Synopsis: apachectl not abled to handle with different configfiles
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Thu Sep 16 08:50:00 PDT 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.9
>Environment:
Unix
>Description:
we missed the possibility to maintain the apache with the apachectl,
i.e for 'restart' if we use different configfiles.
>How-To-Repeat:
>Fix:
I modified the apachectl-script so it recognizes if 'HTTPD_CONF' is set in the
environment. In this case, the httpd is invoced with the '-f' option. Now it
works even with 'configtest' and 'restart'.
Here's the diff, I still hope, this will be helpfull for some othe users,
best regards
tom
----------------------------
*** apachectl.orig Thu Sep 16 17:07:00 1999
--- apachectl Thu Sep 16 17:14:12 1999
***************
*** 26,31 ****
--- 26,34 ----
#
# the path to your httpd binary, including options if necessary
HTTPD=/home/hr75adm/httpsd/bin/httpd
+ if [ x$HTTPD_CONF != 'x' ] ; then
+ HTTPD="$HTTPD -f $HTTPD_CONF"
+ 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
***************
*** 174,179 ****
--- 177,184 ----
graceful - do a graceful restart by sending a SIGUSR1 or start if not
running
configtest - do a configuration syntax test
help - this screen
+
+ If you have set HTTPD_CONF in your environment, this configurationfile is
used.
EOF
ERROR=2
-------------------------------------end diff
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <[EMAIL PROTECTED]> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]