It might be that you don't set $TOMCAT_HOME.
The following script works on Linux, set vars to your values:

#!/bin/sh

TOMCAT_HOME=/usr/local/tomcat
export TOMCAT_HOME

JAVA_HOME=/opt/IBMJava2-13
export JAVA_HOME

case "$1" in
  start)
        echo -n "Starting Tomcat: "
        $TOMCAT_HOME/bin/startup.sh
        echo
        ;;
  stop)
        echo -n "Shutting down Tomcat: "
        $TOMCAT_HOME/bin/shutdown.sh
        echo
        ;;
  *)
        echo "Usage: $0 {start|stop}"
        exit 1
esac

exit 0


> Jon Small wrote:
> 
> O/S: HP-UX 11.0
> Apache: 1.3.12
> Tomcat: 3.1
> 
> Anyone have/had the same problem? I can start Tomcat manually just fine, but
> not successfully with an init script. It seems that the "java" process
> starts initially, but at some point dies. I think that it dies when the init
> script exits. We have it running fine with Linux, but it uses a "daemon"
> command to make the "java" process a daemon. Any clues?
> 
> I use the standard SystemV init script:
> 
> case "$1" in
>    start)
>          echo -n "Starting tomcat: "
>          /usr/local/tomcat/bin/startup.sh
>          ;;
>    stop)
>          echo -n "Shutting down tomcat: "
>          /usr/local/tomcat/bin/shutdown.sh
>          ;;
>    *)
>          echo "Usage: $0 {start|stop}"
>          exit 1
> esac
> 
> exit 0

Reply via email to