Cleanup and adds configuration for crashguard (#240)
This commit is contained in:
parent
55ae0f8778
commit
7dbfa086bc
39 changed files with 1248 additions and 97 deletions
|
|
@ -8,11 +8,18 @@ namespace Server.Misc
|
|||
{
|
||||
public static class CrashGuard
|
||||
{
|
||||
// TODO: Make this configurable
|
||||
private const bool Enabled = true;
|
||||
private const bool SaveBackup = true;
|
||||
private const bool RestartServer = true;
|
||||
private const bool GenerateReport = true;
|
||||
private static bool Enabled;
|
||||
private static bool SaveBackup;
|
||||
private static bool RestartServer; // Disable this if using a daemon/service
|
||||
private static bool GenerateReport;
|
||||
|
||||
public static void Configure()
|
||||
{
|
||||
Enabled = ServerConfiguration.GetOrUpdateSetting("crashGuard.enabled", true);
|
||||
SaveBackup = ServerConfiguration.GetOrUpdateSetting("crashGuard.saveBackup", true);
|
||||
RestartServer = ServerConfiguration.GetOrUpdateSetting("crashGuard.restartServer", true);
|
||||
GenerateReport = ServerConfiguration.GetOrUpdateSetting("crashGuard.generateReport", true);
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue