Java – HOW to Pass parameters to tomcat in ubuntu

cruisecontroljavaservletstomcat

I am trying to configure cruisecontrol to use Tomcat rather than Jetty as its servlet engine. I am following a tutorial on this and I'm stuck at the point where it says:

Pass startup parameter to tomcat.

-Ddashboard.config=/home/cruisecontrol/work/dashboard-config.xml

Which file do I put this in in my Tomcat installation? Is it the startup.sh file in the Tomcat directory?

The tutorials are here.

Best Answer

This probably needs to go in the JAVA_OPTS variable, in the catalina.sh file.