aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ServiceManager
diff options
context:
space:
mode:
authorgareth2007-05-14 01:50:13 +0000
committergareth2007-05-14 01:50:13 +0000
commit5ba3fa962987b5e73757f2022964104748c38e19 (patch)
tree1afcb55352c518939598d50734d489de2d9cd829 /ServiceManager
parentNow we just need that --setup option for all the apps..... (diff)
downloadopensim-SC_OLD-5ba3fa962987b5e73757f2022964104748c38e19.zip
opensim-SC_OLD-5ba3fa962987b5e73757f2022964104748c38e19.tar.gz
opensim-SC_OLD-5ba3fa962987b5e73757f2022964104748c38e19.tar.bz2
opensim-SC_OLD-5ba3fa962987b5e73757f2022964104748c38e19.tar.xz
Added -setuponly switch to gridserver
KILLED THE GRIDSERVER'S CONSOLE VICIOUSLY AND WITHOUT MERCY!!!! Added gridserver setup to InitSetup() in ServiceManager
Diffstat (limited to 'ServiceManager')
-rw-r--r--ServiceManager/ServiceManager.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/ServiceManager/ServiceManager.cs b/ServiceManager/ServiceManager.cs
index 6cd2113..b21a5b1 100644
--- a/ServiceManager/ServiceManager.cs
+++ b/ServiceManager/ServiceManager.cs
@@ -1,4 +1,5 @@
1using System; 1using System;
2using System.Diagnostics;
2using System.Threading; 3using System.Threading;
3using System.ServiceProcess; 4using System.ServiceProcess;
4using System.Xml; 5using System.Xml;
@@ -65,8 +66,13 @@ public class OpenGridMasterService : System.ServiceProcess.ServiceBase {
65 private static string SetupGrid() 66 private static string SetupGrid()
66 { 67 {
67 Console.WriteLine("Running external program (OpenGridServices.GridServer.exe) to configure the grid server"); 68 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 Process p = new Process();
69 return "<grid></grid>"; 70
71 p.StartInfo.Arguments = "-setuponly";
72 p.StartInfo.FileName = "OpenGridServices.GridServer.exe";
73 p.Start();
74
75 return "<gridserver />"; // we let the gridserver handle it's own setup
70 } 76 }
71 77
72 private static string SetupUser() 78 private static string SetupUser()