Page 1 of 1

Cleaning period

Posted: Tue Feb 05, 2019 8:11 pm
by Nelsona
At a moment perhaps memory fragmentation and management in some UT server is not what we need.
In such cases we probably need a controlled restart at a specific time. I've found a so-called older mutator, but which has not always helped, did not do it because of the load which a server can handle at time. When I took a look at what the precious mutator contains, I think I did not have a second of thought, and I decided to love him a little. Such a mutator seems to work much better as ServerActor than as an ordinary mutator that has another networking deal, the logged lines appear to work very well as an actor not as a mutator. If we consider such a ServerActor, it may have defined a configuration read from an INI file as desired. We define the hour, minute and second required, and the server will stop and restart immediately at a clean stage at that scheduled time + 1 second. We leave this second to observe this activity.
INI file has a simple format - sample below:

Code: Select all

[ServerReset.ServerReset]
ResetHour=1
ResetMinute=1
ResetSecond=10
In this case our actor will stop server at 1:1:10 AM and BAT application will restart it properly saving log accordingly if everything is configured as should. INT file might open preferences options for a configuring it from game or generating a new INI if original is lost.
ServerReset.zip
(1.81 KiB) Downloaded 352 times
Setup:
  • ServerActors=ServerReset.ServerReset
MonsterGamingServer has now this feature and default config managed by NfoServers which was ruining logs is now DISABLED. We can manage to restart our servers letting engine to exit properly instead of a TaskKill lousy deal.

Re: Cleaning period

Posted: Wed Feb 06, 2019 7:53 am
by medor
Is it the same from 06/06/2012 ?

Re: Cleaning period

Posted: Wed Feb 06, 2019 3:08 pm
by Nelsona
Nope. There are several differences from version 2004 - that was initial base - I did not see that one from 2012.
- won't crash server as predecessor mentioned at ut99.org - that one was crashing not restarting - restarting was a matter of configuration;
- won't use a timer code, it uses a state code;
- is an Actor running, not a Mutator;
- for figuring functionality it does a report after first second.

Perhaps in a future version an admin command would be implemented but it would be useless, as admin you can send a command "admin exit" and server is quitting without any issue.

Re: Cleaning period

Posted: Wed Feb 06, 2019 5:19 pm
by medor
ok i think i will rename the zip with the dated or v2 before archive it

Re: Cleaning period

Posted: Wed Feb 06, 2019 5:41 pm
by Nelsona
Do what you think it helps, or might help others.