LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2003, 04:08 PM   #1
jader9920
LQ Newbie
 
Registered: Dec 2003
Location: WI
Distribution: RedHat 9.0
Posts: 8

Rep: Reputation: 0
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
 
Old 12-28-2003, 05:37 PM   #2
Quadreg
LQ Newbie
 
Registered: Sep 2003
Location: Belgium
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
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.
 
Old 12-28-2003, 05:49 PM   #3
jader9920
LQ Newbie
 
Registered: Dec 2003
Location: WI
Distribution: RedHat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
cool...thanks...now I just need to create a script to do it all for me
 
Old 12-28-2003, 08:38 PM   #4
jader9920
LQ Newbie
 
Registered: Dec 2003
Location: WI
Distribution: RedHat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
one problem... screen is not a recognized command in redhat 9...

any other ideas?
 
Old 12-28-2003, 09:15 PM   #5
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
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
 
Old 01-05-2004, 03:43 PM   #6
slashcom
LQ Newbie
 
Registered: Aug 2003
Distribution: slacky 9.1
Posts: 9

Rep: Reputation: 0
check the manpage for "nohup"
 
Old 01-05-2004, 04:02 PM   #7
jader9920
LQ Newbie
 
Registered: Dec 2003
Location: WI
Distribution: RedHat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 01-05-2004, 07:38 PM   #8
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
nohup = no hang up. Use it in a fashion similar to:
nohup /usr/bin/game &
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection in graphical mode (X-Server?) max2004 Linux - Networking 12 01-25-2012 05:19 AM
Perl: Wait for ssh connection to close kenneho Programming 9 10-29-2005 09:19 AM
ssh connection closed by server m_yates Linux - Security 3 08-10-2005 03:12 PM
SSH - X server connection problem satimis Linux - Networking 5 04-29-2004 02:29 AM
Speed up game play by shutting down processes MikeMcCarty Linux - Newbie 11 07-22-2003 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration