SRCDS Steam group


Linux Help, Using screen ?
#1
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 ?
Reply
#2
screen -A -m -d -S cstrike ./srcds_run
Reply
#3
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.
Reply
#4
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
Reply
#5
Also make sure screen is instaled and this site might help on how to use it
http://jmcpherson.org/screen.html
basically as elmarcha said type this
Code:
screen -D -RR css-server

If nothing happens then screen is not isntalled and you need to get it from here http://www.gnu.org/software/screen/screen.html
Otherwise you will get taken to a new screen and thats where you can type
Code:
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
Code:
screen -r css-server
or as elmarcha said you can see what other screens are being used by doing this
Code:
screen -list
then to open a screen from that list type
Code:
screen -r PID
PID being the number related to the screen

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

Code:
screen -r cstrike
That will bring up the screen.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)