<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>org.apache.tomcat</string>
<key>ServiceDescription</key>
<string>Tomcat</string>
<key>UserName</key>
<string>root</string>
<key>GroupName</key>
<string>wheel</string>
<key>EnvironmentVariables</key>
<dict>
<key>CATALINA_HOME</key>
<string>/Library/Tomcat</string>
<key>JAVA_HOME</key>
<string>/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/Library/Tomcat/bin/startup.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
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,