advertisement

Article:
  Installing Tomcat on Mac OS X
Subject:   Command Not Found running TOMCAT script
Date:   2003-01-31 01:13:50
From:   orangehead911
Response to: Command Not Found running TOMCAT script

Try this script for the Tomcat script;


#!/bin/sh


##
# Tomcat
##


. /etc/rc.common


export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
export CATALINA_HOME="/Library/Tomcat/Home"
export TOMCAT_HOME="/Library/Tomcat/Home"
export JWSDP_HOME="/Library/Tomcat/Home"



StartService ()
{
# if ! pid=$(GetPID p4d); then
ConsoleMessage "Starting The Java WebServices Framework"
${TOMCAT_HOME}/bin/startup.sh
# fi
}


StopService ()
{
# if pid=$(GetPID p4d); then
ConsoleMessage "Stopping The Java WebServices Framework"
${TOMCAT_HOME}/bin/shutdown.sh
# else
# echo "The Java WebServices Framework is not running."
# fi
}


RestartService ()
{
# if pid=$(GetPID p4d); then
ConsoleMessage "Restarting The Java WebServices Framework"
StopService
StartService
# else
# StartService
# fi
}


RunService "$1"