Garry’s Mod Basic Usage

All Commands

A complete list of commands can be found by typing.

./gmodserver

Below are the most common commands available.

Running

start

./gmodserver start

stop

./gmodserver stop

restart

./gmodserver restart

console

Console allows you to view the live console of a server as it is running and allow you to enter commands; if supported.

./gmodserver console

To exit the console press CTRL+b d. Pressing CTRL+c will terminate the server.

Updating

update

Update checks for any server updates and applies them. The server will update and restart only if required.

./gmodserver update

Bypass the check and go straight to SteamCMD update.

./gmodserver force-update

validate

You can use the SteamCMD validate option when updating the server.

./gmodserver validate

Debugging

Details

You can get all important and useful details about the server such as passwords, ports, config files etc.

./gmodserver details

Debug

Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.

./gmodserver debug

Logs

Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.

/home/gmodserver/logs

Backup

Backup will allow you to create a complete tar bzip2 archive of the whole server.

./gmodserver backup

Monitor

LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.

./gmodserver monitor

Last updated