LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-24-2012, 01:35 AM   #1
sujithspillai90
Member
 
Registered: Jun 2011
Location: India
Posts: 31

Rep: Reputation: Disabled
Smile how to start/stop tomcat automatically when boots up?


Hi,

Please could any one helps me for the steps to automate tomcat service .

Also I would like to add tomcat with chkconfig .
 
Old 07-24-2012, 01:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
if you install tomcat correctly, i.e. with a binary package that came built for your system, then you should already have a startup script like /etc/init.d/tomcat ready for chkconfig to use (chkconfig tomcat on). If you built it from source and can not use an existing package then you would need to find your own distro specific service script online, or potentially in a sample folder in the source code tree.
 
Old 07-24-2012, 02:23 AM   #3
sujithspillai90
Member
 
Registered: Jun 2011
Location: India
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thank you for your quick response.

I have installed tomcat from source. I have created /etc/init.d/tomcat folder and given a soft link in /etc/rc5.d/.

Now I am able to start/stop using "/etc/init.d/tomcat start/stop".

But I would like to add tomcat in chkconfig. Pelase could you help me , how can I add this ?

Do we need to mention the chkconfig in /etc/init.d/tomcat ? If so, what is the format?
 
Old 07-24-2012, 02:30 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
well this is all in the chkconfig manpage, have a look there first and ask for any further clarification if needed.
 
Old 07-24-2012, 06:23 AM   #5
kedarp
Member
 
Registered: Jul 2012
Distribution: Ubuntu
Posts: 197
Blog Entries: 3

Rep: Reputation: 23
Find the link

http://www.mulesoft.com/tomcat-linux

-Kedar

Last edited by kedarp; 07-24-2012 at 06:28 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] unable to stop start tomcat fachhoch@gmail.com Linux - Newbie 0 05-16-2012 04:08 AM
How to make my PERL script start automatically when my HP-UX and IBM-AIX box boots up Nings Programming 1 11-26-2008 03:43 AM
webapp does not start automatically in tomcat craftereric Linux - Software 1 11-05-2008 03:31 AM
Automatically start a game server when system boots Kahless Linux - Software 6 08-01-2004 01:23 AM
How to start scriptfile(tomcat) automatically at boot-time run fmohideen76 Linux - General 4 07-11-2002 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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