LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Starting Tomcat at boot (https://www.linuxquestions.org/questions/aix-43/starting-tomcat-at-boot-4175527798/)

Mark_667 12-09-2014 10:42 AM

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?

linosaurusroot 12-09-2014 11:07 AM

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).


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