This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Roblox.RccServiceArbiter
{
class Program
{
static void Main(string[] args)
{
Log.Event("Starting");
//Cleanup old RCCService instances
System.Diagnostics.Process[] processlist = System.Diagnostics.Process.GetProcesses();
foreach(System.Diagnostics.Process theprocess in processlist)
{
if (theprocess.ProcessName == "RCCService")
{
theprocess.Kill();
}
}
RccService rccService = new RccService();
RccServiceMonitor rccServiceMonitor = new RccServiceMonitor(rccService);
Roblox.ServiceProcess.ServiceBasePublic[] otherHosts = new Roblox.ServiceProcess.ServiceBasePublic[1];
otherHosts[0] = new Roblox.ServiceProcess.ServiceHostApp<RccServiceMonitor>(rccServiceMonitor);
var app = new Roblox.ServiceProcess.ServiceHostApp<RccService>(rccService, otherHosts);
app.HostOpened += new EventHandler(delegate(object a,EventArgs b) { rccService.initializeJobManager(); });
//var app = new Roblox.ServiceProcess.ServiceHostApp<RccServiceMonitor>(rccServiceMonitor);
app.Process(args, delegate() { Roblox.Grid.Arbiter.Common.ArbiterStats stats = new Roblox.Grid.Arbiter.Common.ArbiterStats(rccService.GetStats(false));
Console.Out.Write(stats.ToString());
});
}
}
}