Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-15-2004, 06:28 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Portugal
Distribution: Fedora Core 2
Posts: 2

Rep: Reputation: 0
How to set up tomcat 5 to boot at startup ?

Hi all

I am using Fedora Core 2 (I am very new at Linux)

I am trying to understand how to startup apps at OS startup.

when searching the net, I found a solution for the problem...

Create a new file:

with the lines:
export JAVA_HOME
export PATH

this works, but know.... everytime I open a console window, this file is executed.

So, Anyone can help me how to set up Tomcat as a Service-like (in Windows), so that it starts only with the OS ?

I found something about the jsvc tool, but nothing practical...

any help ?

thankx a lot
Old 11-15-2004, 08:13 AM   #2
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Almost correct

the profile.d dir is apparently not the correct place,
as you report the Tomcat is started everytime you open a console.

The correct place for your script would be /etc/init.d

To work correctly your script should be able to handle start, stop and restart parameters correctly.
Look into the other scripts in this directory, the principle is really simple.

Then look in /etc/inittab for the entry


This is you default runlevel at boot, often 5 or 3.

do a cd /etc/rc3.d or /etc/rc5.d (defined by your default runlevel)
and add a symlink like this:

ln -s /etc/init.d/

Now, whenever your system boots, tomcat will be started automaticly.

There are some tools to handle this, but I think you should get to know the internals,
before you use these tools.


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
Thinking to set up Tomcat server ZiGiE Linux - Enterprise 10 11-25-2005 10:36 AM
tomcat startup on boot malbery Linux - Software 3 01-27-2005 05:10 PM
startup Tomcat 5.5.4 in Fedora 2 treotan Linux - Newbie 1 12-03-2004 10:46 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM
Tomcat Startup (? is appendage to previous post) ChangeOfPace Linux - Software 7 05-01-2003 07:20 PM

All times are GMT -5. The time now is 10:14 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