Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Dedicated Linux server: Difference between revisions

From TF2 Classified Wiki
Webb (talk | contribs)
No edit summary
Webb (talk | contribs)
Add troubleshooting about CPU usage with service file workaround
Line 261: Line 261:


This is likely happening because you enabled use of the SDR but didn't supply a game key. Read [[#Enabling the Steam Datagram Relay|the last paragraph of this section]] for more information.
This is likely happening because you enabled use of the SDR but didn't supply a game key. Read [[#Enabling the Steam Datagram Relay|the last paragraph of this section]] for more information.
=== Server using high levels of CPU when ran via the service file ===
The service file included in this guide has a workaround for Source servers refusing to log without a TTY present. There has been at least one report of this causing unusually high CPU usage. It's believed this happens on servers with slower SSDs and spinning hard drives. You can disable it, but it will mean there will be no journald logs for your server and you can't use features like Systemd sockets.
To disable it, unwrap the <code>srcds_linux64</code> command from <code>script</code>.
<pre>ExecStart=/usr/bin/script -e -c "/home/srcds/classified/srcds_linux64 -port 27015 -tf_path /home/srcds/tf +map ctf_2fort +maxplayers 24" /dev/null</pre>
<pre>ExecStart=/home/srcds/classified/srcds_linux64 -port 27015 -tf_path /home/srcds/tf +map ctf_2fort +maxplayers 24</pre>


[[Category:Guides]]
[[Category:Guides]]