Hi,
I 'm facing this problem with apache2 running on SUSE10 SP4 zLinux.
Every time I restart apache2, using the "service apache2 restart" command,
the following variables
are not set:
LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2
TNS_ADMIN=/opt/oracle/network/admin
ORACLE_HOME=/opt/oracle/instantclient_10_2
It seems that "service" (used in IPL phase too) clears environment
before start any process.
Nevertheless if I restart apache2 through "/etc/init.d/apache2" the
mentioned variable are properly set and everything works fine. This
because I've set them in /etc/profile.local so the "root" env is used.
Any clue or hints about the configuration file and/or instruction to use
(export ? SetEnv ? PassEnv ?)
in order to have the variables properly set at every Apache2 reboot
through "service" command ?
I wouldn't modify the "/etc/init.d/apache2" default start script by
inserting required vars into it, but if possible by configuring something
in a "*.local" file or in some other file untouched when apache2 pkg
will be updated.
Thanks in advance..
Marco Bosisio
IBM Italia S.p.A.
Sede Legale: Circonvallazione Idroscalo - 20090 Segrate (MI)
Cap. Soc. euro 347.256.998,80
C. F. e Reg. Imprese MI 01442240030 - Partita IVA 10914660153
Società con unico azionista
Società soggetta all?attività di direzione e coordinamento di
International Business Machines Corporation
(Salvo che sia diversamente indicato sopra / Unless stated otherwise
above)
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/