I must launch 2 instances of tomcat on a server and with the same user. I'm trying to set differents CATALINA_BASE when launching tomcat but this environment variable is not used.
That is the commands I use:
base0=/home/$INT/inst0
base1=/home/$INT/inst1
#...
su $INT -c "CATALINA_BASE=$base0;$cathome/bin/startup.sh"
su $INT -c "CATALINA_BASE=$base1;$cathome/bin/startup.sh"
and that is what I see in the console:
Using CATALINA_BASE: /home/mci2/tomcat
Using CATALINA_HOME: /home/mci2/tomcat
Using CATALINA_TMPDIR: /home/mci2/tomcat/temp
The catalina_home is ok but not the catalina_base.
Dit I miss something?