aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ServiceManager
diff options
context:
space:
mode:
Diffstat (limited to '')
-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()