LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-27-2002, 04:20 PM   #1
azure_ss
LQ Newbie
 
Registered: Aug 2002
Posts: 11

Rep: Reputation: 0
How to autostart tomcat?


Can anybody out there please tell me how to AutoStart Tomcat4 in the background on a RedHat Linux box without having to log in and start the service manually? I know that if I log in as a user I can add them in the .bash_profile.But how about if I want to start tomcat without having to log in?Where can I add the environment var?Please give detail procedure for I am new for linux
Thanks for any help in advance
 
Old 08-28-2002, 12:33 PM   #2
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
What I usually do is copy one of the files in /etc/init.d to a new name, edit it to run whatever program you want, then create links to it in the /etc/rc.d/rc3.d, rc4.d, and rc5.d directories like the other ones in there (make sure it starts with a capital "S" and a unique number).

If you need the program to die gracefully during a shutdown, then create a "kill" link (capital "K") in /etc/rc.d/rc1.d, rc2.d, and rc6.d directories.
 
  


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
Debian - Problems autostart Tomcat 4.1.30 on boot KaminariJ Linux - Software 5 10-13-2004 08:25 AM
autostart noobtesting Mandriva 3 07-04-2004 12:45 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 10:47 PM
How to autostart tomcat? azure_ss Linux - Newbie 5 08-29-2002 01:24 PM


All times are GMT -5. The time now is 06:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration