ClusterLabs/resource-agents — pull request #358 by davidvossel (2013-11-26 20:41:01+00:00)
Title: Medium: tomcat: Override default tomcat config with resource options

The /usr/sbin/tomcat script attempts to detect a default configuration file and import the tomcat environment variables from that config file. This is causing problems with HA tomcat agent because the configuration variables the agent sets are written over by the ones the /usr/sbin/tomcat script pulls in from the default /etc/tomcat/tomcat.conf file

To avoid the /usr/sbin/tomcat script from using the default /etc/tomcat/tomcat.conf values instead of the agent specific ones, the agent points the TOMCAT_CFG to an empty temporary file during start/stop.