G T Smith schrieb:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

George Stoianov wrote:
defined in the alljava.sh script.. Running scripts manually should set
and export these variables but there is no change to them, the variables
settings are being used within the startup script but not being exported
to the environment as I would expect... Everything seems to be working
but the status of these variables is a bit of puzzle...
Should they be exported only for the tomcat user or all users? Which
user are you logged in as? Can you switch to the tomcat user and check
the env there??

... this is one of those moments ... Doh!

I worked out what is happening and my error, the variables are being
passed to the sub processes spawned by the tomcat5 script, however no
changes is being made to the current process environment.

To export them to a current shell I need to add a script to
/etc/profile.d to ensure that the relevant settings can be passed to
things like installation programs that install outside of the tomcat
environment. The script probably needs to be generated by the tomcat5
script so it reflects current settings... which could be fun....
Hi.

source /etc/sysconfig/j2ee

you set all variables to the values the tomcat script uses. With

export CATALINA_HOME CATALINA_BASE JAVA_OPTS ...

you export them for sub processes -- this is how the
/etc/init.d/tomcat5
script works as well: Just look for an export command with a lot of variable names.

Cheers,
Daniel



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGZG9ZasN0sSnLmgIRAop1AKDYZeeCkCHqSpET4EmmZ7PDdnO9PwCgyfkK
y/GDsGfHO2FVSwprzeac1ME=
=lTMV
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to