[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343353: Apache 1.3.x envvars support on startup



Package: apache
Version: 1.3.34
Severity: normal

Hi,

It will be very useful to implement envvars support in apache startup script, like apache2 debian packages.
For example, if i must set NLS_LANG environment variable on apache startup, I must change /etc/init.d/apache as described below:
// --------
ENV="env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin NLS_LANG=BULGARIAN_CIS.CL8MSWIN1251"
// --------

I try to set this variable in /usr/sbin/apachectl, but that way is not working because init.d script use env to start apache, not apachectl.

The best way to implement this (in my opinion) is to use /usr/sbin/apachectl to start apache in init.d script, and include following lines in /usr/sbin/apachectl :
// --------
# pick up any necessary environment variables
if test -f /etc/apache/envvars; then
  . /etc/apache/envvars
fi
// --------


                              Best Regards: Ilian Jovchev



Reply to: