Posts: 5
Threads: 2
Joined: Mar 2005
Reputation:
0
03-29-2005, 09:10 PM
(This post was last modified: 03-29-2005, 09:12 PM by foehammer989.)
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?
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
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.
[img]*****highperformancegaming.net/images/userbars/userbar_wow.jpg[/img]
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: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
Hmm, runs fine for me.
[img]*****highperformancegaming.net/images/userbars/userbar_wow.jpg[/img]
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: 5
Threads: 0
Joined: Mar 2005
Reputation:
0
im using Redhat 9, and it doesn't work, What Linux version are you running
thanks
Posts: 5
Threads: 0
Joined: Mar 2005
Reputation:
0
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
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
I use Gentoo Linux, and FreeBSD.
I don't touch screen
[img]*****highperformancegaming.net/images/userbars/userbar_wow.jpg[/img]
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: 25
Threads: 4
Joined: Jun 2005
Reputation:
0
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.
Posts: 380
Threads: 9
Joined: Jan 2005
Reputation:
0
Shan Wrote:Wait..which one do i Download?
This one:
ftp://rpmfind.net/linux/fedora/core/deve...9.i386.rpm
or
ftp://rpmfind.net/linux/fedora/core/deve...-9.src.rpm
???
the first one, unless you want to compile it yourself
United Strike Marine Corps
USMC-CO| θ (theta)
Posts: 13
Threads: 3
Joined: Aug 2005
Reputation:
0
so..id do..like
1.) yum install screen
2.) ./srcds_run -game "Counter-Strike Source" +map de_dust +maxplayers 20 -secure &
3.)disown
??