Red Hat Bugzilla – Bug 115910
apachectl doesn't respect $OPTIONS from /etc/sysconfig/httpd
Last modified: 2007-11-30 17:07:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5)
Description of problem:
apachectl doesn't appear to respect any extra $OPTIONS that may be set
for Apache in /etc/sysconfig/httpd. Both /etc/rc.d/init.d/httpd and
/usr/sbin/apachectl source /etc/sysconfig/httpd when executed, but
init.d/httpd clearly uses $OPTIONS and /usr/sbin/apachectl mentions
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create /etc/sysconfig/httpd with the text OPTIONS="-DFOO"
2. Start Apache using service httpd start
3. Note that Apache is started with -DFOO
4. Stop Apache and restart with apachectl.
5. Note that Apache is not started with -DFOO
To fix, esentially just add $OPTIONS after most instances of $HTTPD in
apachectl. The diff against httpd-2.0.40-apctl.patch is really ugly.
Thanks for the report.
This problem is resolved in the next release of Red Hat Enterprise Linux. Red
Hat does not currently plan to provide a resolution for this in a Red Hat
Enterprise Linux update for currently deployed systems.
With the goal of minimizing risk of change for deployed systems, and in response
to customer and partner requirements, Red Hat takes a conservative approach when
evaluating changes for inclusion in maintenance updates for currently deployed
products. The primary objectives of update releases are to enable new hardware
platform support and to resolve critical defects.