Hey, so I own multiple TF2 servers that I host for friends on a VPS, but for some reason it auto shuts down after there are 0 players is there any way of stopping that from happening? It is starting to become a pain to start up the server multiple times a day. I feel like this might be a issue with TF2 like a command in console for the server or possibly an issue with the VPS but if anyone knows please let me know.
TF2 Server Auto Shutdown
posted in
TF2 General Discussion
Hey, so I own multiple TF2 servers that I host for friends on a VPS, but for some reason it auto shuts down after there are 0 players is there any way of stopping that from happening? It is starting to become a pain to start up the server multiple times a day. I feel like this might be a issue with TF2 like a command in console for the server or possibly an issue with the VPS but if anyone knows please let me know.
Make sure "sv_shutdown" is not called in any configs, and set tf_allow_server_hibernation to 0 if you keep having issues. Check the VPS logs to make sure you're not hitting memory limits (OOM killer) and start your server with -autoupdate and an update script, this way the server will automatically reboot instead of shutting down.
./srcds_run [...snip...] -steamcmd_script /home/your-user/steam/server-1.txt -autoupdate
Contents of server-1.txt:
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/your-user/server-1/
app_update 232250
quit
Make sure "sv_shutdown" is not called in any configs, and set tf_allow_server_hibernation to 0 if you keep having issues. Check the VPS logs to make sure you're not hitting memory limits (OOM killer) and start your server with -autoupdate and an update script, this way the server will automatically reboot instead of shutting down.
[code]./srcds_run [...snip...] -steamcmd_script /home/your-user/steam/server-1.txt -autoupdate[/code]
Contents of server-1.txt:
[code]
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/your-user/server-1/
app_update 232250
quit
[/code]
[code]./srcds_run [...snip...] -steamcmd_script /home/your-user/steam/server-1.txt -autoupdate[/code]
Contents of server-1.txt:
[code]
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/your-user/server-1/
app_update 232250
quit
[/code]
Please
sign in through STEAM
to post a comment.