SRCDS Steam group


Sending server into background?
#1
I manage a network of game servers, as well as a clanserver for a few of my friends, based on servers using CentOS 3.3.
One of my biggest peeves when working on a server is closing PuTTY and watching as all of the servers that I've started shut down. Back in the day, when HLDS was my weapon of choice, I read that adding "&" to the command line was supposed to send the server process into the background, but that doesn't seem to work for Source. I don't have screen installed because I feel that it's only an added hassle, so I can't use the server.sh trick.

Is there anything I can do (or add to the start command) to keep the servers from shutting down whenever I exit the shell session?

http://www.flashwirenetwork.net
Founder/SysAdmin - The Flashwire Group
Reply
#2
try using nohup:

nohup ./srcds_run <arguements here> &

be warry it logs everything to nohup.out and that file can get big very quick if the server is active alot.
[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
dont work. ran it with that was fine till i closed the puddy.

Sad
Reply
#4
Runnung scrcds in background

Reply
#5
Hmm, runs fine for me.
[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
#6
im using Redhat 9, and it doesn't work, What Linux version are you running

thanks
Reply
#7
Well, Iv gave up in the no_hup option and am forced to use the screen.
anyone know where i can download screen for redhat 9 and mybe a tutorial somewhere on how to install screen.

thanks
Reply
#8
wget http://ftp.rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/screen-4.0.2-7.i386.rpm

rpm -ivh screen-4.0.2-7.i386.rpm

screen -A -m -d -S cssource ./srcds_run <args>
Reply
#9
I use Gentoo Linux, and FreeBSD.

I don't touch screen Smile
[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
#10
Theres a php Web control panel out there you can use called hldStart. You don't need to login to the shell anymore. Check it out. It's free
hldStart homepage
~Greg Smile
Free game server control panel - opengamepanel.org
Reply
#11
Also, profothob or whatever.its
http://ftp.rpmfind.net/linux/fedora/core/development/i386/SRPMS/screen-4.0.2-9.src.rpm
now..
Reply
#12
Wait..which one do i Download?
This one:
http://ftp.rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/screen-4.0.2-9.i386.rpm
or
http://ftp.rpmfind.net/linux/fedora/core/development/i386/SRPMS/screen-4.0.2-9.src.rpm
???
Reply
#13
Either use screen (in Fedora just type yum install screen) or do
./srcds_run ...arguments... &

Don't forget to "disown" before you logout otherwise the srcds-process will be killed.
Reply
#14
Shan Wrote:Wait..which one do i Download?
This one:
http://ftp.rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/screen-4.0.2-9.i386.rpm
or
http://ftp.rpmfind.net/linux/fedora/core/development/i386/SRPMS/screen-4.0.2-9.src.rpm
???

the first one, unless you want to compile it yourself
United Strike Marine Corps
USMC-CO| θ (theta)
Reply
#15
so..id do..like
1.) yum install screen
2.) ./srcds_run -game "Counter-Strike Source" +map de_dust +maxplayers 20 -secure &
3.)disown
??
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)