Question

Game Server 24.7

  • Posted on August 5, 2013
  • bgclanAsked by bgclan

Hi, I’m running a Counter-Strike: Source gameserver but when I close the putty client, the server just shuts down , sometimes when i close it doesn’t shut down which is weird, so all goes well, ubt whenever the server gets no activity for lets say, 30 minutes , i just shuts down, how can I keep my CS:s server up 24/7? Is there something I need to add to the command line to keep it up 24/7? Here’s my current command line:

./srcds_run -game cstrike +port 27015 +maxplayers 16 +map de_dust2 -secure

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Don’t do any of that. <br> <br>Just run: <br> <br>./srcds_run -game cstrike +port 27015 +maxplayers 16 +map de_dust2 -secure > /dev/null 2>&1 & <br> <br>The issue is your server trying to write to the output pipe and it not being available since the ssh session is closed. Just pipe your output to dev null instead, the server will still have logs, it just won’t log back to console and crash.

@bgclan: Once you run the gameserver, you should detach the screen session by pressing <strong>ctrl +a, d</strong>. You should be back to your shell once you do that. You can then disconnect and the server will still be running.

Hi … <br>Type: screen -r