LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-19-2004, 06:57 AM   #1
net_shadow
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Question Configure Tomcat 4.1.30 on Redhat Linux Advanced Server 2.1


Hi everybody!
Now, I have a problem about configuration Tomcat environment variables on Redhat Linux Advanced Server 2.1. I use Tomcat version 4.1.30. How I have to do things to config Tomcat 4.1.30.

Regards!
 
Old 10-23-2004, 03:20 PM   #2
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
put this in /etc/rc.d/init.d/tomcat:

Code:
#!/bin/sh

export JAVA_HOME=[where you installed JDK]
export TOMCAT_HOME=[where you installed tomcat]

tomcat_start() {
  if [ -x ${TOMCAT_HOME}/bin/startup.sh ]; then
    echo "Starting Tomcat..."
    $TOMCAT_HOME/bin/startup.sh
  fi
}

tomcat_stop() {
  if [ -x ${TOMCAT_HOME}/bin/shutdown.sh ]; then
    echo "Shutting down Tomcat..."
    $TOMCAT_HOME/bin/shutdown.sh
  fi
}

tomcat_restart() {
  tomcat_stop
  sleep 2
  tomcat start
}

case "$1" in
'start')
  tomcat_start
;;
'stop')
  tomcat_stop
;;
'restart')
  tomcat_restart
esac
then chmod +x /etc/rc.d/init.d/tomcat and run it with /etc/rc.d/init.d/tomcat start
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Entrise Linux Advanced Server amitkush Red Hat 2 09-02-2005 03:56 AM
How to configure Squid for Redhat Advanced server zameer_india Linux - General 1 06-13-2005 10:57 AM
Configure Redhat Linux on VMWare to use Apache and Tomcat beltzaser Linux - Networking 0 06-25-2004 03:02 AM
configure cluster in redhat advanced server 2.1 sathishraks Red Hat 1 02-13-2004 12:19 PM
Redhat Linux Advanced Server yenonn Linux - General 2 05-18-2003 11:15 PM


All times are GMT -5. The time now is 06:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration