static public void Start(StartedHandler started) { Log.Spew("Starting daemon"); string beagled; beagled = Environment.GetEnvironmentVariable("BEAGLED_COMMAND"); string args; args = "--debug-memory --bg --backend Files"; if (UseHeapBuddy) { args += " --heap-buddy"; } Process p; p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = beagled; p.StartInfo.Arguments = args; p.StartInfo.EnvironmentVariables ["BEAGLE_HOME"] = Beagle.Util.PathFinder.HomeDir; p.StartInfo.EnvironmentVariables ["BEAGLE_EXERCISE_THE_DOG"] = "1"; p.StartInfo.EnvironmentVariables ["BEAGLE_UNDER_BLUDGEON"] = "1"; p.StartInfo.EnvironmentVariables ["BEAGLE_HEAP_BUDDY_DIR"] = Path.Combine(Beagle.Util.PathFinder.HomeDir, ".bludgeon"); p.Start(); WaitForStartClosure closure; closure = new WaitForStartClosure(p, started); closure.Start(); }
static public void Start (StartedHandler started) { Log.Spew ("Starting daemon"); string beagled; beagled = Environment.GetEnvironmentVariable ("BEAGLED_COMMAND"); string args; args = "--debug-memory --bg --backend Files"; if (UseHeapBuddy) args += " --heap-buddy"; Process p; p = new Process (); p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = beagled; p.StartInfo.Arguments = args; p.StartInfo.EnvironmentVariables ["BEAGLE_HOME"] = Beagle.Util.PathFinder.HomeDir; p.StartInfo.EnvironmentVariables ["BEAGLE_EXERCISE_THE_DOG"] = "1"; p.StartInfo.EnvironmentVariables ["BEAGLE_UNDER_BLUDGEON"] = "1"; p.StartInfo.EnvironmentVariables ["BEAGLE_HEAP_BUDDY_DIR"] = Path.Combine (Beagle.Util.PathFinder.HomeDir, ".bludgeon"); p.Start (); WaitForStartClosure closure; closure = new WaitForStartClosure (p, started); closure.Start (); }