Here are some useful server command line parameters: (Note: Any command starting with "-" must be set within the server's command line; any command starting with "+" can also be set in a server config file.)
Code:
+game_type 0 +game_mode 0
Sets the game type.
............
Code:
+host_workshop_collection 125652555 +workshop_start_map 125488374
Allows the use of workshop collections.
If you choose not to use a workshop collection, see
this thread for information about mapgroups.
............
Code:
-ip 70.34.195.3 +hostport 27020
Sets the IP and port.
............
Code:
-usercon +rcon_password **********
Allows you to use rcon and sets the rcon password.
............
Code:
-nowatchdog
Elimates the annoying "WARNING: Watchdog timer exceeded, aborting!" crashes frequently seen on linux servers.
............
Code:
-tickrate 128
Sets the server's tickrate, which is similar to fps. Possible values are 64, 102, or 128. Set this number as high as your machinery will allow.
............
Code:
-autoupdate -steam_dir /home/gamer/go/steamcmd -steamcmd_script deathmatch.txt
Allows autoupdating with a script.
............
Here's an example of a full startup line:
Code:
./srcds_run -game csgo +game_type 0 +game_mode 1 +host_workshop_collection 150262748 +workshop_start_map 125438255 -authkey xxxxxxxxxx -ip 50.31.113.10 +port 27015 +tv_enable 1 +tv_port 27028 -usercon -nowatchdog -autoupdate -tickrate 128 -autoupdate -steam_dir /home/amuser/go/steamcmd -steamcmd_script server1.txt