Clustered tomcat-6 resource doesn't start processes as configured TOMCAT_USER in RHEL 6
Issue
- The configured Tomcat-6 resources starts correctly but the processes are started as
root(there are not started with "su TOMCAT_USER -c" like Tomcat-5 resource do), so all files written (e.g. logs files) are root files. - We have tried to declare
TOMCAT_USERvariable in/etc/sysconfig/tomcat6.conf, in/etc/tomcat6/tomcat6.confand in the customizedtomcat6.confcreated for each resource instance but without success. tomcat-6resource fails to start because the pidfile directory in/var/run/cluster/tomcat-6doesn't have the right permissions.
Environment
- Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add On
resource-agentsprior to release3.9.2-40.el6- One or more
tomcat-6resources in/etc/cluster/cluster.conf TOMCAT_USERconfigured as a non-root user in the tomcat configuration used by the resource(s)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.