The installer will automatically download and configure a Counter-Strike 1.6 server.
Before installing, please ensure you have all the dependencies required to run the script.
apt-get install gdb mailutils postfix
apt-get install gdb mailutils postfix lib32gcc1
apt-get install gdb mailutils postfix tmux ca-certificates
dpkg --add-architecture i386 apt-get update apt-get install gdb mailutils postfix tmux ca-certificates lib32gcc1
RHEL 6/CentOS 6
Note: EPEL repository or equivalent is required.
RHEL 6/CentOS 6 32-bit
yum install tmux gdb mailx postfix glibc
RHEL 6/CentOS 6 64-bit
yum install tmux gdb mailx postfix glibc.i686
1. Create a user and login.
adduser csserver passwd csserver su - csserver
2. Download the script.
3. Make it executable.
chmod +x csserver
4. Run the installer and follow the instructions.
Running the Server
Start the server.
Stop the server.
Restart the server.
Updating the Server
The server can be updated automatically using SteamCMD. The update option will stop the server, run the SteamCMD update and start the server again.
To restart the server while updating use update-restart.
It is recommended that you restart the server when an update is completed to apply the update.
It is possible to use the validate option when updating the server.
Validate is a command that will check all the server files to make sure they match the SteamCMD files.
This command is useful if you think files may be missing or corrupted.
Note: Validation will overwrite any files that have been changed. This may cause issues with customized servers. For example if you customize mapcycle.txt this file will be overwritten to the server default. Any files that are not part of the default installation will not be affected.
To restart the server while validating use validate-restart.
Running on Boot
To run csserver on boot add the command in to the rc.local file.
su - csserver -c '/home/csserver/csserver start'
Monitoring the Server
The script can monitor the server to ensure it is online. Should the server go offline, the monitor will attempt to start it again.
Note: see Automation on how to get monitor to run automatically.
Game Server Query Plugin
The Game Server Query plugin adds improved monitoring over the standard monitoring feature.
gsquery.py queries the server to see if it responds with its server details. If it fails to respond the server will be restarted.
This is particularly useful if a server has locked up or frozen but the server instance/process is still running.
Install Game Server Query Plugin
Download gsquery.py to the same directory as the main script.
Make it executable.
chmod +x gsquery.py
To test is works run monitor and it will state that gsquery.py was detected.