SSH hangs on exit

Kenneth Porter shiva at sewingwitch.com
Mon Nov 14 16:41:55 UTC 2005


--On Monday, November 14, 2005 3:16 PM +0000 Jonathan Underwood 
<j.underwood at open.ac.uk> wrote:

> I am actually seeing this behaviour if I start a process using nohup on
> the server, with all output redirected to files. Surely then, ssh should
> exit cleanly? (but it doesn't). I've  never been sure if this is a bug.

Check out the "screen" command. I use that for my game servers. A typical 
invocation:

screen -dmS my-game-server script-to-start-game

This creates a detached screen session named "my-game-server" running the 
script "script-to-start-game". You can reattach to it later to view any 
output. I put this in an initscript so that the game servers start at boot 
time.




More information about the users mailing list