From d95d59db3bd7f8f447ae96b9f4384e11c650d494 Mon Sep 17 00:00:00 2001 From: gareth Date: Mon, 14 May 2007 01:38:52 +0000 Subject: Now we just need that --setup option for all the apps..... --- ServiceManager/ServiceManager.cs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/ServiceManager/ServiceManager.cs b/ServiceManager/ServiceManager.cs index de9f415..6cd2113 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() -- cgit v1.1