PDA

View Full Version : Problem when running server in Background


pretorien2k
06-27-2006, 01:13 AM
Hi ,

i'm running cod2 in linux dedicaced server

my linux is DEBIAN 3.1

i have upload all the needed file , make my cfg, all it's ok

i connect on my dedicaced server in SSH mode (putty) ^^ i can launch the server but when i close putty , the server will stop

so i decide tu put & at the end of line

./cod2_lnxded +set dedicated 2 +exec lanrunners.cfg >/dev/null 2>&1 &

or

/cod2_lnxded +set dedicated 2 +exec lanrunners.cfg &


i see i can continue to work in ssh mod

ben when i close the ssh same problem !

when i type : TOP i have the list of processus but i'm surprise than cod_lnxded appear randomly ! it's appear , disappear , appear ,disappear !
i don't understand !

My server is 1.0 and can't upgrade to 1.2c cause when upgrading client to 1.2 or 1.3 , they don't see the server , so i prefer rest in 1.0

Thanxs for your help

Scrapie
06-27-2006, 10:34 AM
>/dev/null 2>&1 & must work:confused:

pretorien2k
06-27-2006, 03:39 PM
no don't work !

the line command return i can execute another one but when i close putty, server of COD2 is down !

xGrunt
06-28-2006, 08:23 AM
I agree with Scrapie; that should work just fine.

I would contact your server host and see what's up. They may be using some different version of SCREEN.

With games other than COD2, such as ET, I've used screen -A -m -d -S ./etded.x86 etc etc etc
That has also worked well for me but >/dev/null 2>&1 & should also work.

pretorien2k
06-28-2006, 09:21 AM
So , little update a friend help me and i launch cod2 with this

nohup ./cod2_lnxded +set dedicated 2 +exec server.cfg &



and it continue to work when i close putty ^^

thanx you so

Scrapie
06-29-2006, 01:00 PM
xgrunt, yeah can be... some screen.

normaly they work : screen -S clanname -d -m ./sclanbash

if u use screen, u dont need to use dev/null

robert
06-29-2006, 07:23 PM
I have written this in an old howto for CoD2 on linux but can't really remember.

Here it is: http://callofduty2.infinity-shell.net ;)