Game server shutting down when I close my SSH connection
I am attempting to get a game server for Wolfenstein:Enemy Territory as well as Call of Duty up and running and when I start the servers everything runs fine until I close my SSH connection to the server, at which point the game server goes down as well.
My question is this: Is there some sort of startup script I can put in to make the game server start automatically and stay up when I close my connection? and if so how do I create it ? I am a newb as far as linux goes but have done lots I thought over my head as far as these servers are concerned Any help would be greatly appreciated |
you have to use screen.
Just type screen and start your game server, then you type "CTRL+A" and "d". now screen is running on the background and you can log out. |
cool...thanks...now I just need to create a script to do it all for me
|
one problem... screen is not a recognized command in redhat 9...
any other ideas? |
The screen package just isn't installed, it is part of RH9 though...
# rpm -qf /usr/bin/screen screen-3.9.13-5 Get it and install it, screen is great for this sort of thing. When you connect back to the server later type "screen -R" to re-attach to that screen session if necessary... If you're not sure how to get and install this: # ncftpget ftp://mirrors.kernel.org/redhat/redh....13-5.i386.rpm # rpm -ivh screen-3.9.13-5.i386.rpm |
check the manpage for "nohup"
|
I have no idea what that post means...
anyway...screen works great, but my next problems is creating scripts to start the servers without having to cd to the directory and start them manually... any scripters out there want to help a non programmer with this? |
nohup = no hang up. Use it in a fashion similar to:
nohup /usr/bin/game & |
All times are GMT -5. The time now is 10:44 AM. |