How to run Tomcat as a background service from a telnet session?

Alessandro A. Garbagnati

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 continue running in the background after you log out.

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.