LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Game server shutting down when I close my SSH connection (https://www.linuxquestions.org/questions/linux-software-2/game-server-shutting-down-when-i-close-my-ssh-connection-129593/)

jader9920 12-28-2003 04:08 PM

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

Quadreg 12-28-2003 05:37 PM

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.

jader9920 12-28-2003 05:49 PM

cool...thanks...now I just need to create a script to do it all for me

jader9920 12-28-2003 08:38 PM

one problem... screen is not a recognized command in redhat 9...

any other ideas?

wdingus 12-28-2003 09:15 PM

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

slashcom 01-05-2004 03:43 PM

check the manpage for "nohup"

jader9920 01-05-2004 04:02 PM

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?

stickman 01-05-2004 07:38 PM

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.