Raised This Month: $ Target: $400
 0% 

[TF2] Restart server on srcds update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HarryHy
Junior Member
Join Date: Feb 2010
Old 07-27-2010 , 13:58   [TF2] Restart server on srcds update
Reply With Quote #1

Is there a way to do this? I have -autoupdate in my srcds options ("server will be updated on map change"), but that fails when I run the same map 24/7! So is there a way to have srcds say to players "TF2 update, server restarting in 10..9..8..7......2..1..", and it will restart srcds somehow?

I am not concerned about any plugins breaking after the update (not often does Valve do that, and I only run a few plugins), it just makes me sad when I go away for a few days and the server is dead and everyone cried to me via PM because they couldn't play on their favorite server when the server version was out of date.

Thanks!
HarryHy is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-27-2010 , 17:15   Re: [TF2] Restart server on srcds update
Reply With Quote #2

In the SteamTools extension there's a Steam_RestartRequested forward... that might do the trick.
noodleboy347 is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-27-2010 , 17:52   Re: [TF2] Restart server on srcds update
Reply With Quote #3

If you have full access to your server (SSH) and your server runs Linux, I highly recommend nemrun. It's much better than srcds_run, and you can do a lot more with it. If you run the server on 1 screen, and the updater daemon included in nemrun on another, then the updater will usually see the updates immediately and update your server quickly.

noodleboy, that function is unreliable and malicious users can spoof MasterRequestRestart packets rather easily.

Last edited by Afronanny; 07-27-2010 at 17:54.
Afronanny is offline
HarryHy
Junior Member
Join Date: Feb 2010
Old 07-28-2010 , 01:18   Re: [TF2] Restart server on srcds update
Reply With Quote #4

Quote:
Originally Posted by Afronanny View Post
If you have full access to your server (SSH) and your server runs Linux, I highly recommend nemrun. It's much better than srcds_run, and you can do a lot more with it. If you run the server on 1 screen, and the updater daemon included in nemrun on another, then the updater will usually see the updates immediately and update your server quickly.

noodleboy, that function is unreliable and malicious users can spoof MasterRequestRestart packets rather easily.
Thanks very much, I shall try this out. Looks like it's exactly what I want.

@noodle, thanks for the reply as well
HarryHy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode