Upvote Upvoted 5 Downvote Downvoted
TF2 Server Auto Shutdown
1
#1
0 Frags +

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.

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.
2
#2
serveme.tf
8 Frags +

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]
3
#3
1 Frags +

I'll try that out thank you so much!

I'll try that out thank you so much!
Please sign in through STEAM to post a comment.