Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-27-2002, 03:20 PM   #1
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, 11:33 AM   #2
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.


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

All times are GMT -5. The time now is 07:05 PM.

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