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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to