Linux HA Cluster: running a resource as non-root user

centos7corosynchigh-availabilitylinuxpacemaker

i'm have successfully setup the HA cluster using pacemaker and corosync on centos7, and i've also been able to add and start resources.

one of the resources is an instance of tomcat, and in the current configuration it runs fine. the only problem i am having is that tomcat is being run as root user. i would like the tomcat resource to launch as non-root user. i've been reading the documentation but i havent been able to find anything yet.

can anyone here see if they have a solution to this?

thanks in advance.

Best Answer

looking carefully at the documentation for the HA resource type ocf:heartbeat:tomcat there is an option tomcat_user , when set, tomcat will be launched as that user.