AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [TOOLS] Server UpTime Restarter (https://forums.alliedmods.net/showthread.php?t=260064)

CoolJosh3k 03-18-2015 22:55

[TOOLS] Server UpTime Restarter
 
2 Attachment(s)
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"

turtsmcgurts 03-19-2015 03:12

Re: [TOOLS] Server UpTime Restarter
 
Are regular restarts necessary with the source engine? I always found map changes to be sufficient.

Chdata 03-19-2015 14:36

Re: [TOOLS] Server UpTime Restarter
 
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].

CoolJosh3k 03-20-2015 18:36

Re: [TOOLS] Server UpTime Restarter
 
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).


All times are GMT -4. The time now is 18:37.

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