LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 12-09-2014, 10:42 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
Starting Tomcat at boot


I added the following line into /etc/inittab on AIX 6.1:

Code:
tomcat:2:respawn:/opt/apache-tomcat-7.0.57/bin/catalina.sh start
but the next time the VM rebooted I got an error saying it had respawned too many times. It looks like it had kept respawning and eventually used up all the memory on the box as when I tried to edit inittab in vi it eventually failed on a fork process because of insufficient memory!

What's wrong with the line above? What's a safe way to start Tomcat with the box?
 
Old 12-09-2014, 11:07 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
I suspect the problem is your java starts as a background process and the shell exits. Then init thinks it's time to do it again. Maybe ending the script with a "wait" command would solve it (don't have AIX to hand to suggest more exactly).
 
1 members found this post helpful.
  


Reply



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
Problem with starting Tomcat kedarp Linux - Software 1 06-11-2013 11:46 AM
[SOLVED] Error in Starting Tomcat in Spacewalk vikas027 Linux - Software 3 11-04-2011 03:25 PM
starting tomcat jayrmca Linux - Software 8 04-15-2009 08:06 AM
Starting apache tomcat at boot triley Linux - General 3 10-27-2008 02:01 PM
starting tomcat as a specific user kidswipe Linux - General 1 08-23-2007 11:57 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 12:30 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
Open Source Consulting | Domain Registration