LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 05: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, 06:25 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
If you add/edit it to your rc.local it should work with no problems..
 
Old 07-10-2002, 07: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, 07: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, 11:44 PM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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 11:46 PM.
 
  


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 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/Novell 6 11-03-2005 05:41 AM
run program automatically at specific time simon_qwl Programming 2 03-20-2005 11:58 AM
automatically start gdm at boot time rosslaird Debian 6 09-07-2004 10:00 AM
RH8 - how to automatically run a shell script at boot time nu-B Linux - Newbie 2 11-03-2003 03:47 PM
RH8 - how to automatically run iptables rules shell script at boot time nu-B Linux - General 1 10-29-2003 09:38 PM


All times are GMT -5. The time now is 08:13 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration