How to run Tomcat as a background service from a telnet session?
Location: http://www.jguru.com/faq/view.jsp?EID=556838 Created: Nov 22, 2001 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by frank xie (http://www.jguru.com/guru/viewbio.jsp?EID=556251 Additional information: First I telneted the server, and then started up tomcat service at background. It worked well. But when I quit from the server, I found I couldn’t browse the jsp pages. I telneted the server again and found the tomcat service was not running. Why? Hi, When you put in background an application, (on Unix) you are not guaranteed that once you will log off, the application will reside in memory. The process of you logged in is, in fact, the father of all the processes you generate and when you kill it (by logging off), all the children, normally, are killed. The solution is to use the nohup command before the command itself. In fact, nohup runs the given command with hangup signals ignored, so that the command can continu