<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">
<div>Does it mean that there is no way to set a global environment variable at boot time?</div></td></tr></tbody></table></blockquote><div><br></div><div>Sorry if it seemed that was implied.</div><div><br></div><div>My response was basically that I derive the CATALINA_HOME and other bits based on where the install by symlinking the init script to it and then working out where it is. Thereby doing away with the need to set a global env at boot for the whole system and giving me the ability to run multiple instances.</div>
<div><br></div><div>Otherwise I would (still specific and not system wide):</div><div><br></div><div>1) create a file in /etc/default (e.g. /etc/default/myTomcat)</div><div>2) source it in the init script</div><div><br></div>
<div>Otherwise as a global /etc/profile should do it. To test you can simply have your script write something to a log and have a look after boot, e.g.</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div class="gmail_quote"><div><font face="courier new, monospace">echo $CATALINA_HOME >> /tmp/check_env.log</font></div></div></blockquote><div class="gmail_quote"><div><br></div><div><br></div><div><br></div></div>