SRCDS Steam group

Linux Help, Using screen ?
I have a hosting company that hosts my machine, and I telnet/ssh into it, and everytime I run the server, and I close putty, it kills the server, what do I have to do, to make it so it runs in the background, and/or when I run the command to start it, that it goes back to the command prompt and still runs the server ?
screen -A -m -d -S cstrike ./srcds_run
I tried it with the ./srcds_run and with the full command line and this is all.

root@localhost [~]# cd srcds_l
root@localhost [~/srcds_l]# screen -A -m -d -S cstrike ./srcds_run
root@localhost [~/srcds_l]# screen -A -m -d -S cstrike ./srcds_run -console -game cstrike +map de_dust -maxplayers 32 -autoupdate
root@localhost [~/srcds_l]#

Server never loaded.
type screen -D -RR css-server

this will send you to a new blank screen then go to the directory that you hrcds is in and run your command from there. When you close your screen, the screen will now stay open at the server end.

To see what screens are open at the server end type screen -list
Also make sure screen is instaled and this site might help on how to use it
basically as elmarcha said type this
screen -D -RR css-server

If nothing happens then screen is not isntalled and you need to get it from here
Otherwise you will get taken to a new screen and thats where you can type
cd srcds_l
./srcds_run -console -game cstrike +map de_dust -maxplayers 32 -autoupdate
Then once its running pres Ctrl+Shift+A+D and it will exit it that screen and leave the process running, then to get back to it type
screen -r css-server
or as elmarcha said you can see what other screens are being used by doing this
screen -list
then to open a screen from that list type
screen -r PID
PID being the number related to the screen

Hope that helps as well and if not my bad
screen -A -m -d -S cstrike ./srcds_run
That will start the server up in the background with the name cstrike

screen -r cstrike
That will bring up the screen.

Forum Jump:

Users browsing this thread: 1 Guest(s)