LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2002, 04:39 AM   #1
fmohideen76
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Rep: Reputation: 0
How to start scriptfile(tomcat) automatically at boot-time run


Dear all,
I have installed tomcat-jakarta webserver in my Linux(redhat7.3) machine. I want to run this ./catalina.sh(for to start the tomcat) at boot-time.

Please tell me how to do the things.

I tried in following way.

I put the .catalina.sh link(/usr/local/tomcat4.0.3/bin/catalina.sh) into the
/etc/rc.d/init.d directory

Here, the link is perfect.

Note:
If I will start the tomcat jakarta manually , then it is working fine
#cd /usr/local/tomcat4.0.3/bin
#./catalina.sh start
 
Old 07-10-2002, 05:25 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
If you add/edit it to your rc.local it should work with no problems..
 
Old 07-10-2002, 06:01 AM   #3
fmohideen76
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Original Poster
Rep: Reputation: 0
pl can u explain it, what i supposed to do with rc.local file.
is there in /etc/rc.d directory.
 
Old 07-10-2002, 06:52 AM   #4
biosx
Member
 
Registered: Jul 2002
Location: Chicagoland
Distribution: Gentoo, Ubuntu
Posts: 63

Rep: Reputation: 15
Re: How to start scriptfile(tomcat) automatically at boot-time run

Quote:
Originally posted by fmohideen76

Note:
If I will start the tomcat jakarta manually , then it is working fine
#cd /usr/local/tomcat4.0.3/bin
#./catalina.sh start
Wait, did you write the two lines into the file exactly like that? If so, just get rid of the "#" in front of each one (the comments).

Forgive me if this isn't your problem.

Also, you don't need to cd to the directory first and then execute it, you can just write:

/usr/local/tomcat4.0.3/bin/catalina.sh

Just make sure the script is executable and you're fine.

good luck!
 
Old 07-11-2002, 10:44 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the easy way to add this to rc.local is like this

run this as a command

echo "/usr/local/tomcat4.0.3/bin/catalina.sh" >> /etc/rc.d/rc.local


or edit the file /etc/rc.d/rc.local

Last edited by DavidPhillips; 07-11-2002 at 10:46 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run a command automatically on start up TKD SUSE / openSUSE 6 11-03-2005 04:41 AM
run program automatically at specific time simon_qwl Programming 2 03-20-2005 10:58 AM
automatically start gdm at boot time rosslaird Debian 6 09-07-2004 09:00 AM
RH8 - how to automatically run a shell script at boot time nu-B Linux - Newbie 2 11-03-2003 02:47 PM
RH8 - how to automatically run iptables rules shell script at boot time nu-B Linux - General 1 10-29-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration