CS2 Server Manager
Install and run several CS2 servers on one Linux machine with csm.
CS2 Server Manager (csm) is a command-line tool with a menu in the terminal. On one Linux machine it:
- installs CS2 with SteamCMD,
- installs Ready Up, the native CS2 plugin, on every server,
- runs each server (in instance mode it starts a crashed server again),
- keeps the game and the plugins updated, never in the middle of a match.
Linked to Auto Tournament 3.0 (csm link), the platform creates, starts, stops and updates the machine's servers itself, and uses them for failover and auto-scaling. csm also works on its own, for any setup that needs several CS2 servers.
- Source and releases: github.com/Auto-Tournament/cs2-server-manager
- Bugs and questions: GitHub issues
- License: PolyForm Noncommercial 1.0.0, free for non-commercial use
How it is set up
csm runs as the ordinary Linux account you run it from. It refuses to run as root: only sudo csm setup-host, sudo csm install-deps, sudo csm self-update and sudo csm cleanup-all use sudo. Everything lives in that account's home folder:
| Path | What it is |
|---|---|
~/master-install/ | One full CS2 install. SteamCMD only updates this one. |
~/server-1/, ~/server-2/, ... | One folder per server (classic mode). The large game files are shared with master-install, so each extra server uses about 2 GB. |
~/overrides/game/ | Your own config files. They survive updates. |
~/logs/ | csm's log (csm.log) and the console log of each server (server-1.log, ...). |
In instance mode (csm instance config backend instances), every server runs the one CS2 install read-only and only keeps the files it writes itself. Ten servers use about as much disk as one, and a CS2 update is made once, as a new version next to the old one. The platform uses this mode when it creates servers.
Set CSM_ROOT to keep csm's files somewhere other than your home folder.