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
-- 
[EMAIL PROTECTED] mailing list

Reply via email to