Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15592 - Apache2 init.d script is incorrect in the 'restart' portion
Summary: Apache2 init.d script is incorrect in the 'restart' portion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-12 14:59 UTC by Adam M.
Modified: 2003-02-23 14:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch (apache2.initd.patch,528 bytes, patch)
2003-02-12 15:04 UTC, Adam M.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam M. 2003-02-12 14:59:30 UTC
In the restart section of the init.d script for apache2, the code uses APACHE_OPTS when it should be using APACHE2_OPTS instead. If you have APACHE2_OPTS defined, this causes the options to be lost upon issuing a 'restart' command.

Reproducible: Always
Steps to Reproduce:
1.Define some APACHE2_OPTS in conf.d (say -D PHP)
2./etc/init.d/apache2 start (okay, php works)
3./etc/init.d/apache2 restart (now, -D PHP is lost)
Actual Results:  
The configuration files were loaded without -D PHP (or whatever was in APACHE2_OPTS).

Expected Results:  
Made use of the options in conf.d
Comment 1 Adam M. 2003-02-12 15:04:02 UTC
Created attachment 8205 [details, diff]
a patch

This should fix the problem, I think...
Comment 2 SpanKY gentoo-dev 2003-02-12 18:21:38 UTC
refer to Bug 7995 
Comment 3 Donny Davies (RETIRED) gentoo-dev 2003-02-23 14:45:44 UTC
fixed this.