From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IWujo-0006aw-Tj for garchives@archives.gentoo.org; Sun, 16 Sep 2007 14:04:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8GDtmom020673; Sun, 16 Sep 2007 13:55:48 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8GDpTnh016029 for ; Sun, 16 Sep 2007 13:51:29 GMT Received: (qmail invoked by alias); 16 Sep 2007 13:51:29 -0000 Received: from pD9E87047.dip.t-dialin.net (EHLO elmicha.333200002251-0001.dialin.t-online.de) [217.232.112.71] by mail.gmx.net (mp028) with SMTP; 16 Sep 2007 15:51:29 +0200 X-Authenticated: #441233 X-Provags-ID: V01U2FsdGVkX19sYSUC9MZsUcK+pocgrA3xsJy3bMhLN+7AugwZNo BisV7ourmc9bEZ Received: from elmicha by elmicha.333200002251-0001.dialin.t-online.de with local (Exim 4.67 #1 (Gentoo Linux)) id 1IWuX2-0000Cf-FO; Sun, 16 Sep 2007 15:51:28 +0200 Date: Sun, 16 Sep 2007 15:51:28 +0200 From: Michael Mauch To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Apache 2.2: missing KEEPENV (with solution) Message-ID: <20070916135128.GA9999@elmicha> Mail-Followup-To: gentoo-user@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Y-GMX-Trusted: 0 X-Archives-Salt: ef2a6468-7319-40df-8e23-1542c3fa7c0f X-Archives-Hash: 9db6e42c45b919a5840adccc0786089a 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