public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Apache 2.2: missing KEEPENV (with solution)
@ 2007-09-16 13:51 Michael Mauch
  2007-09-18  1:34 ` Bo Ørsted Andresen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Mauch @ 2007-09-16 13:51 UTC (permalink / raw
  To: gentoo-user

Hi,

the recent Apache 2.2.6 ebuild brought an /etc/init.d/apache2 that
doesn't honour the KEEPENV variable anymore.

Formerly one could preserve some of the environment variables (while all
others would be unset to keep Apache's environment tidy).

To resurrect that KEEPENV variable, I put in /etc/conf.d/apache2:


# first set all variables
. /etc/profile

#
# Environment variables to keep
# All environment variables are cleared from apache
# Use this to preserve some of them
# NOTE!!! It's very important that this contains PATH

KEEPENV="PATH PWD LANG NLS_LANG ORACLE_HOME ORACLE_SID ORA_NLS10 LD_LIBRARY_PATH"
# only an example

while IFS="=" read name value ; do
  case " $KEEPENV " in
    *" $name "*) ;;
    *)           unset $name 2>/dev/null;;
  esac
done < <(printenv)



Regards...
		Michael
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Apache 2.2: missing KEEPENV (with solution)
  2007-09-16 13:51 [gentoo-user] Apache 2.2: missing KEEPENV (with solution) Michael Mauch
@ 2007-09-18  1:34 ` Bo Ørsted Andresen
  0 siblings, 0 replies; 2+ messages in thread
From: Bo Ørsted Andresen @ 2007-09-18  1:34 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

On Sunday 16 September 2007 15:51:28 Michael Mauch wrote:
> the recent Apache 2.2.6 ebuild brought an /etc/init.d/apache2 that
> doesn't honour the KEEPENV variable anymore.
>
> Formerly one could preserve some of the environment variables (while all
> others would be unset to keep Apache's environment tidy).
>
> To resurrect that KEEPENV variable, I put in /etc/conf.d/apache2:

Maybe you should post this at bugs.gentoo.org ?

-- 
Bo Andresen

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-18  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-16 13:51 [gentoo-user] Apache 2.2: missing KEEPENV (with solution) Michael Mauch
2007-09-18  1:34 ` Bo Ørsted Andresen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox