tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [SOLVED] Start tomcat at boot - debian lenny
Date Sat, 25 Apr 2009 16:45:41 GMT

Pablo Augusto wrote:
> Hello,
> 
> it was done, but not worked.
> the problem was that etc/profile was loading after /etc/init.d/tomcat
> 
> so the java variables was not exportes yet,
> to workarround i put all variavles and paths at /etc/init.d/tomcat
> 
I'm glad it worked for you.
But the /etc/init.d/tomcat is probably not the best place.

If you look in /etc/init.d/tomcat, you'll see lines like

NAME=tomcat5.5
...
DEFAULT=/etc/default/$NAME
...
# overwrite settings from default file
if [ -f "$DEFAULT" ]; then
	. "$DEFAULT"
fi

Basically what it means, is that there is a file /etc/default/tomcat5.5 
which is executed by the /etc/init.d/tomcat5.5 script, at boot and 
whenever your start Tomcat.
In that file is probably where you should set your Java parameters.

It will not change anything right now, but it will make a difference the 
day that you update Tomcat on your system.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message