I try to automatically startup Tomcat 9 (9.0.26) with LaunchDaemon on macOS Mojave. My LaunchDaemon “org.apache.tomcat.plist” property list file looks like as follows:
<?xml version="1.0" encoding="UTF-8"?> Disabled Label org.apache.tomcat ServiceDescription Tomcat UserName root GroupName wheel EnvironmentVariables CATALINA_HOME /Library/Tomcat JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home ProgramArguments /Library/Tomcat/bin/startup.sh RunAtLoad KeepAlive
The file is placed in /Library/LaunchDaemons folder and has root:wheel as owner:group settings (tried also with admin:wheel, admin:staff etc. with no success).
Unfortunately, Tomcat won’t startup. I have not problem starting and stopping Tomcat in a Terminal with following commands (where “Tomcat” is a sym link to the tomcat installation)
/Library/Tomcat/bin/startup.sh
/Library/Tomcat/bin/catalina.sh stop
So manually sorting and stopping works well. This is also true when using a Mac utility called Tomcat Controller.
Anyone having a property list for Tomcat 9 which works and is willing to share?
Regards,