LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   HLDS closes when I close telnet (http://www.linuxquestions.org/questions/linux-general-1/hlds-closes-when-i-close-telnet-56812/)

MarleyGPN 04-25-2003 10:43 PM

HLDS closes when I close telnet
 
Hi,
I am trying to run Half-life dedicated server on Linux, I access the Linux server though telnet. Every time I close telnet the half-life server shuts down. What do I need to do, to keep the half-life server up, other then leaving the telnet session open? I notice that when I type ‘ps’ HLDS shows up. I am assuming that those processes are for that terminal ‘/dev/pts/2’ I don’t have physical access to the server. Is there anyway I can run is in a permanent terminal or somehow keep it from closing? I do have access to root if I need to do anything in there.

Any help is appreciated

bind_master 04-26-2003 05:34 PM

Hello,

As you have guessed, the process hlds is attached to your session. As you close your session, you end all your processes including your hlds server. You can use screen for that. Try this :

screen -A -m -d -S hlds ./hlds_run -game cstrike +maxplayers 20 +map de_aztec

or screen -A -m -d -S ./your_start_script.sh

Then to get to your server type :

screen -r hlds

and if you want to reconnect from yet another terminal, type :

screen -D -r hlds

which will disconnect the old session and reconnect to yours...

You will see your server in your terminal window.
Works great!

Get all the info from :
http://server.counter-strike.net/help/linuxscreen.html
and
screen -?


All times are GMT -5. The time now is 11:41 PM.