diff --git a/ServiceManager/ServiceManager.cs b/ServiceManager/ServiceManager.cs index de9f41511e..6cd2113ef9 100644 --- a/ServiceManager/ServiceManager.cs +++ b/ServiceManager/ServiceManager.cs @@ -62,9 +62,37 @@ public class OpenGridMasterService : System.ServiceProcess.ServiceBase { } + private static string SetupGrid() + { + Console.WriteLine("Running external program (OpenGridServices.GridServer.exe) to configure the grid server"); + // TODO: Drop the console! and then configure using CLI params and/or XML files + return ""; + } + + private static string SetupUser() + { + return ""; + } + + private static string SetupAsset() + { + return ""; + } + + private static string SetupRegion() + { + return ""; + } + public static void InitSetup() { string choice=""; + + string GridInfo; + string UserInfo; + string AssetInfo; + string RegionInfo; + bool grid=false; bool user=false; bool asset=false; @@ -101,6 +129,11 @@ public class OpenGridMasterService : System.ServiceProcess.ServiceBase { break; } } + + if(grid) GridInfo = SetupGrid(); + if(user) UserInfo = SetupUser(); + if(asset) AssetInfo = SetupAsset(); + if(region) RegionInfo = SetupRegion(); } public static void Main()