#!/bin/sh ## # Start Tomcat ## . /etc/rc.common export JAVA_HOME=/Library/Java/Home export CATALINA_HOME="/usr/local/tomcat" export TOMCAT_HOME="/usr/local/tomcat" StartService () { if [ "${TOMCAT:=-NO-}" = "-YES-" ]; then ConsoleMessage "Starting Tomcat" sh ${TOMCAT_HOME}/bin/startup.sh fi } StopService() { ConsoleMessage "Stopping Tomcat" sh ${TOMCAT_HOME}/bin/shutdown.sh } RestartService () { StopService StartService } RunService "$1"
You need to create an account or log in to post comments to this site.