Raised This Month: $51 Target: $400
 12% 

[TOOLS] Server UpTime Restarter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CoolJosh3k
AlliedModders Donor
Join Date: Mar 2010
Old 03-18-2015 , 22:55   [TOOLS] Server UpTime Restarter
Reply With Quote #1

Only tested on TF2, but putting this here incase someone wants to clean it up and make a proper deal out of it.

This plugin uses the server uptime to perform a restart, rather than a time of day. It also check to see if there are players on there.

Quote:
// Use this if you wish to stop plugin functions temporarily.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
SUR_Enable "1"

// Atleast this many players will cause the restart to be delayed. Spectators are not counted.
// -
// Default: "4"
// Minimum: "1.000000"
SUR_MaxPlayers "4"

// Minimum time in seconds before restart attempt. Default is 1 day.
// -
// Default: "86400"
// Minimum: "60.000000"
SUR_UpTime_Min "86400"

// Maximum time in seconds before server restart is forced, regardless of player count. Default is 3 days.
// -
// Default: "259200"
// Minimum: "60.000000"
SUR_UpTime_Min_Max "259200"

// Display restart warning message as a chat message.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
SUR_Warn_ShowChat "1"
Attached Files
File Type: smx server_uptime_restarter.smx (5.2 KB, 185 views)
File Type: sp Get Plugin or Get Source (server_uptime_restarter.sp - 540 views - 4.9 KB)
CoolJosh3k is offline
turtsmcgurts
SourceMod Donor
Join Date: Jul 2011
Old 03-19-2015 , 03:12   Re: [TOOLS] Server UpTime Restarter
Reply With Quote #2

Are regular restarts necessary with the source engine? I always found map changes to be sufficient.
turtsmcgurts is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-19-2015 , 14:36   Re: [TOOLS] Server UpTime Restarter
Reply With Quote #3

After a while, plugins that don't restart on map change [any that aren't actually being changed] can accumulate memory leaks [if they're coded poorly].
__________________
Chdata is offline
CoolJosh3k
AlliedModders Donor
Join Date: Mar 2010
Old 03-20-2015 , 18:36   Re: [TOOLS] Server UpTime Restarter
Reply With Quote #4

I am not sure on the specifics, but as far as I know, this is a problem with the Source Engine. Sourcemod plugins might affect how soon issues start, based on which ones they are.

Typically I have found that 1 day is fine, but if left too long you start to see a stuttering effect for on all players (which can be seen by all players).

Last edited by CoolJosh3k; 03-20-2015 at 18:37.
CoolJosh3k 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 11:55.


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