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
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.
Get all the info from :
|All times are GMT -5. The time now is 07:28 PM.|