Posts: 3
Threads: 1
Joined: Jan 2005
Reputation:
0
I'm starting to start a CS:S server, but as soon as I close SSH, the server closes.
Here's my startup command:
./srcds_run -console -game cstrike +map de_dust +maxplayers 20 -autoupdate &
I've never had a problem like this with anything else.
Posts: 10
Threads: 0
Joined: Jan 2005
Reputation:
0
The problem here is that you are running the srcds as your user on your terminal, once you disconnect your terminal (by closing your ssh session) your srcds server closes along with all your other processes. The method to resolve this, as suggested in this sites tutorial for linux, is to run the server using the gnu screen program to run it on a separate detached terminal that will be persistant when you logoff. For full details on how to achieve this click the tutorials button right at the top then head to the linux install tutorial, details on running with screen are towards the end.
AfterGlow
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
Hmm, thats weird, adding & should keep it alive. i've always added and and closed my SSH sessions and the server stays up.
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Posts: 44
Threads: 3
Joined: Dec 2004
Reputation:
0
I coulnd't get the & to work so I just installed GNU Screen. It's not that hard...
Tracer
CS:Source 66.194.153.223:27015
Natural Selection 66.194.153.223:27016
Posts: 10
Threads: 0
Joined: Jan 2005
Reputation:
0
Not being a linux guru my assumption would be that & moves it into the background but keeps it running under your current login, but thats only an assumption.
AfterGlow
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
While it does send it to the background, it should keep it running, unless a kill -9 <pid> is issued. are you logging out the moment you run the command?
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.