-   Linux - General (
-   -   HLDS closes when I close telnet (

MarleyGPN 04-25-2003 11:43 PM

HLDS closes when I close telnet
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 06:34 PM


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 ./

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 :
screen -?

All times are GMT -5. The time now is 07:39 PM.