I want to run 1 webapp per 1 tomcat service/cluster in Ubuntu for the reasons listed here: Should you run one or multiple applications per tomcat cluster?
Is the only way of killing the tomcat service via try & finally in java code as described here: How to shutdown tomcat service when an app/war deployment fails?
I would assume that a configurable option for Tomcat to do this automatically would make more sense. Does one exist?
Ideally it could be a parameter for the service object? https://tomcat.apache.org/tomcat-7.0-doc/config/service.html But I couldn't find anything like it