aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ServiceManager/ServiceManager.cs
diff options
context:
space:
mode:
authorgareth2007-05-14 01:38:52 +0000
committergareth2007-05-14 01:38:52 +0000
commitd95d59db3bd7f8f447ae96b9f4384e11c650d494 (patch)
treeeceb3bef05375ea916766b2c657a450ef4df19f8 /ServiceManager/ServiceManager.cs
parentAdded cool setup thing (no XML writign yet) to ServiceManager (diff)
downloadopensim-SC_OLD-d95d59db3bd7f8f447ae96b9f4384e11c650d494.zip
opensim-SC_OLD-d95d59db3bd7f8f447ae96b9f4384e11c650d494.tar.gz
opensim-SC_OLD-d95d59db3bd7f8f447ae96b9f4384e11c650d494.tar.bz2
opensim-SC_OLD-d95d59db3bd7f8f447ae96b9f4384e11c650d494.tar.xz
Now we just need that --setup option for all the apps.....
Diffstat (limited to '')
-rw-r--r--ServiceManager/ServiceManager.cs33
1 files changed, 33 insertions, 0 deletions
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 {
62 62
63 } 63 }
64 64
65 private static string SetupGrid()
66 {
67 Console.WriteLine("Running external program (OpenGridServices.GridServer.exe) to configure the grid server");
68 // TODO: Drop the console! and then configure using CLI params and/or XML files
69 return "<grid></grid>";
70 }
71
72 private static string SetupUser()
73 {
74 return "<user></user>";
75 }
76
77 private static string SetupAsset()
78 {
79 return "<asset></asset>";
80 }
81
82 private static string SetupRegion()
83 {
84 return "<regions></regions>";
85 }
86
65 public static void InitSetup() 87 public static void InitSetup()
66 { 88 {
67 string choice=""; 89 string choice="";
90
91 string GridInfo;
92 string UserInfo;
93 string AssetInfo;
94 string RegionInfo;
95
68 bool grid=false; 96 bool grid=false;
69 bool user=false; 97 bool user=false;
70 bool asset=false; 98 bool asset=false;
@@ -101,6 +129,11 @@ public class OpenGridMasterService : System.ServiceProcess.ServiceBase {
101 break; 129 break;
102 } 130 }
103 } 131 }
132
133 if(grid) GridInfo = SetupGrid();
134 if(user) UserInfo = SetupUser();
135 if(asset) AssetInfo = SetupAsset();
136 if(region) RegionInfo = SetupRegion();
104 } 137 }
105 138
106 public static void Main() 139 public static void Main()