Tomcat doesn't start at boot!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Liza

    Tomcat doesn't start at boot!

    Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a
    binary, not an RPM. It looks OK but it won't start at boot time.
    There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All I have
    is catalina.sh and startup.sh in $TOMCAT_HOME/bin. There is no
    tomcat.conf file for this version either. Should I create my own shell
    script? What should be in it? Should it just call catalina.sh or
    startup.sh? Where should I put this script? Can I copy the script
    from a previous version? Or is there anything else I should do?
    Thanks in advance.
    N.K.
  • Dave Ockwell-Jenner

    #2
    Re: Tomcat doesn't start at boot!

    Liza wrote:[color=blue]
    > Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a
    > binary, not an RPM. It looks OK but it won't start at boot time.
    > There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All I have
    > is catalina.sh and startup.sh in $TOMCAT_HOME/bin. There is no
    > tomcat.conf file for this version either. Should I create my own shell
    > script? What should be in it? Should it just call catalina.sh or
    > startup.sh? Where should I put this script? Can I copy the script
    > from a previous version? Or is there anything else I should do?
    > Thanks in advance.
    > N.K.[/color]

    Here's what I use (this is on Solaris, but should be the same kind of
    idea)...

    # NAME
    # tomcat
    #
    # SYNOPSIS
    # tomcat [start|stop]
    #
    # DESCRIPTION
    # Script to start and stop the Tomcat Java application server.
    #
    ############### ############### ############### ############### ############### ###

    CATALINA_HOME=/opt/tomcat
    TOMCAT_USER=web
    JAVA_HOME=/opt/j2sdk

    case $1 in
    'start')
    su - $TOMCAT_USER >/dev/null 2>&1 -c "JAVA_HOME=$JAV A_HOME
    CATALINA_HOME=$ CATALINA_HOME $CATALINA
    _HOME/bin/startup.sh"
    ;;

    'stop')
    su - $TOMCAT_USER >/dev/null 2>&1 -c "JAVA_HOME=$JAV A_HOME
    CATALINA_HOME=$ CATALINA_HOME $CATALINA
    _HOME/bin/shutdown.sh"
    ;;

    *)
    echo "Usage: $0 { start | stop }"
    ;;
    esac


    --
    Dave Ockwell-Jenner
    Solar Nexus Solutions


    Comment

    Working...