Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122282 - apache2 init script overwrites envvars. order problem
Summary: apache2 init script overwrites envvars. order problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 10:22 UTC by Douglas Hammond
Modified: 2006-05-15 19:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Hammond 2006-02-09 10:22:04 UTC
in /etc/init.d/apache2

you have 

start() {
    checkconfig || return 1
    ebegin "Starting apache2"
    [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
    [ -f /usr/lib/apache2/build/envvars ] && . /usr/lib/apache2/build/envvars
    ${APACHE2} ${APACHE2_OPTS} -k start
    eend $?
}

even if /usr/lib/apache2/build/envvars is sourced it is not included in the apache envirionmentas checkconfig has already cleaned up the env for apache
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-05-15 19:54:05 UTC
Use the KEEPENV settings to keep an environment variable. If you need to set one, add it to /etc/conf.d/apache2. The line including envvars shouldn't be there and has been removed as of apache 2.0.58.