SRCDS Steam group


Leave server running w/o putty running
#1
Well, I know the tutorial talks about screens, but apparently that doesnt work with my distro, Debian. Know what else to do to keep my server running? Lol, i really cant afford to leave putty running 24/7 Big Grin

Need any other information, i'll do my best to supply it.

Thanks
Reply
#2
Add & at the end of the command.
[Image: userbar_wow.jpg]
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.
Reply
#3
You could redirect all output to /dev/null (or a file of your choice). Ex:
Quote:/path/to/your/srcds/install/./srcds_run -game dods +map dod_avalanche +maxplayers 12 > /dev/null 2>&1

The problem is you can't reattach to the console.

I just looked on the Debain website and it appears to support screen? http://packages.debian.org/stable/misc/screen.html
Reply
#4
Debian does support screen, he just needs to install it using apt-get install screen i belive.

It doesn't come nativly with the OS. But i think its a bit slower under screen.
[Image: userbar_wow.jpg]
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.
Reply
#5
This didn't appear to work, "./srcds_run -game cstrike -console +ip 72.232.222.114 -port 27015 +maxplayers 20 +exec server.cfg -tickrate 100 +map de_dust &" and like i said, it didnt work Sad

Anything else? or am i doing it wrong (probably the second one)

EDIT: btw, im running this command, then i quit our putty? thats correct yes?
Reply
#6
what happens when you type "screen" and hit enter?
Reply
#7
-bash: screen: command not found
Reply
#8
you have to install it then, after you do that, you type screen and it will open a "virtual console" in the same window, run your game under that console then detach yourself from it. you can then log off of putty and the console still runs in the background, does that make sense? you then log back into putting and re-attach to the session if you need to make any changes/restart/etc.

just remember to detach before you log off, it becomes habit after a while.
Reply
#9
makes enough sense, any tips for install?
Reply
#10
i don't know how debian handles packages but i believe its "apt-get install screen" same thing as what cryotek says up top. after that type "screen -S test" and the cursor will go back to the top, that will be your virtual, type exit to get out. or to detach hold ctrl + a, then hit d. to re-attach type "screen -r test" as you can see what is after the -S flag is the name of the screen. so "screen -S css1" or "screen -S css2" re-attach using the name you named it obviously.
Reply
#11
oh if you have more than 1 screen up you can type "screen -r" and it will give you a list of all of them. or if you just have 1 "screen -r" will attach you the that one.
Reply
#12
hmm, i tried to install it, through apt-get, but its not letting me w/ permissions, gonna have to gripe at hosting company now, since its a root server. :-/ thanks for the replies, if i can get screen going, it should be easy from there
Reply
#13
you have to either do it as root or su, not your regular account. good luck!
Reply
#14
thanks!
Reply
#15
alrite Big Grin after some trial and error, i got su to work and installed screen, running servers easily now, thank you very much...to all of you Big Grin
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)