SHA-512
checksums for every release file. After you download the file, you should calculate a checksum for your download, and make sure it is the same as ours. <?xmlversion='1.0'encoding='utf-8'?> <tomcat-users> <rolerolename='manager'/> <rolerolename='admin'/> <userusername='admin'password='pass'roles='admin,manager'/> </tomcat> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #! /bin/sh # tomcat-launchd.sh # # Wrapper script that starts Tomcat and waits for the Tomcat process # to exit. This is needed for proper interaction with launchd. #--------------------------------------------------------- # Helper functions #--------------------------------------------------------- # NOTE: We are inheriting CATALINA_HOME from launchd, because its value # was defined in the launchd plist configuration file. function shutdown(){ # Bye Tomcat! echo'Shutting down Tomcat.. ' $CATALINA_HOME/bin/catalina.sh stop echo'done.' # Cleaning up the temporary file rm-f$CATALINA_PID } function startup(){ # Define the file where we want the Tomcat process ID to be stored. exportCATALINA_PID=$(mktemp/tmp/`basename-s .sh $0`.XXXXXX) if[$?-ne0] then echo'$0: Failed to create temporary file. Aborting.' exit1 fi rm-f$CATALINA_PID # Let's go! echo'Starting up Tomcat.. ' . $CATALINA_HOME/bin/catalina.sh start # Register the shutdown function as callback to execute when a signal # is sent to this process. trap shutdown HUP INT QUIT ABRT KILL ALRM TERM TSTP echo'done.' } function wait_for_tomcat_to_exit(){ echo'Waiting for Tomcat to exit (PID: `cat $CATALINA_PID`).. ' wait`cat$CATALINA_PID` echo'done waiting for Tomcat to exit.' } #--------------------------------------------------------- # Let's go #--------------------------------------------------------- startup wait_for_tomcat_to_exit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <?xmlversion='1.0'encoding='UTF-8'?> <!DOCTYPE plist PUBLIC '-//Apple Computer//DTD PLIST 1.0//EN' 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'> <plistversion='1.0'> <dict> <key>Label</key> <string>org.apache.tomcat</string> <key>ServiceDescription</key> <string>Tomcat Servlet/JSP Server</string> <key>UserName</key> <string>_tomcat</string> <key>GroupName</key> <string>_tomcat</string> <key>EnvironmentVariables</key> <dict> <key>CATALINA_HOME</key> <string>/usr/local/tomcat</string> <key>JAVA_HOME</key> <string>/System/Library/Frameworks/JavaVM.framework/Home</string> </dict> <key>ProgramArguments</key> <array> <string>/usr/local/tomcat/bin/tomcat-launchd.sh</string> </array> <key>StandardOutPath</key> <string>/usr/local/tomcat/logs/launchd-stdout.log</string> <key>StandardErrorPath</key> <string>/usr/local/tomcat/logs/launchd-stderr.log</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist> |
<?xmlversion='1.0'encoding='utf-8'?> <tomcat-users> <rolerolename='manager-gui'/> <rolerolename='admin'/> <userusername='admin'password='pass'roles='admin,manager-gui'/> </tomcat> |