The moose likes Linux / UNIX and the fly likes Ending Telnet session kills the tomcat process I started Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Ending Telnet session kills the tomcat process I started" Watch "Ending Telnet session kills the tomcat process I started" New topic
Author

Ending Telnet session kills the tomcat process I started

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 160
Hi
I hope someone can help me with my problem. i deploy my sites on a remote solaris box and administrate them through a telnet session from microsoft 2000. The problem is that if i start a tomcat, bin/startup.sh, and then end my telnet session it seems to kill the process.
it is pretty annoying having this window on my desktop. it is a liability if i get mouse happy and start closing windows thus dropping my sites.
I can see my printlns on the prompt. I am no unix mastermind but i thought that if you put an & after the command it happens in the background but this seems not to do anything. should i put this in the startup.sh file after the java line?
Thanks in advance for any help
David
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
David - try using 'nohup' to start the TC process.
HTH, Guy
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12510

I'd do a little reasearch. The Linux RPM contains a script that makes Tomcat runnable as a system daemon rather than being a user task. Certainly I'd expect Solaris to have a similar solution.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
 
subject: Ending Telnet session kills the tomcat process I started
 
Threads others viewed
JSP, Apache, tomcat problem
The connection was refused when attempting to contact localhost:8080
Tomcat shutting down automatically
How to setup Tomcat to run as user and daemon in Lunix/Redhat ?
Connection refuse on tomcat
IntelliJ Java IDE