We have this problem where people start the tomcat server as root and that causes start up issues. We have a script and want to force system admins to start tomcat using the script which starts tomcat as webuser.
Can I modify catalina.sh or through any other mechanism for tomcat to fail at startup if the user is any other than webuser ?