mirror of
https://github.com/netchx/netch.git
synced 2026-04-05 19:45:05 +08:00
修复unbound日志未重定向
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Netch.Controllers
|
||||
{
|
||||
Name = "DNS Service";
|
||||
MainFile = "unbound.exe";
|
||||
RedirectStd = false;
|
||||
// RedirectStd = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -128,12 +128,13 @@ namespace Netch.Controllers
|
||||
Instance.Start();
|
||||
if (priority != ProcessPriorityClass.Normal)
|
||||
Instance.PriorityClass = priority;
|
||||
if (!RedirectStd || StartedKeywords.Count == 0) return true;
|
||||
if (!RedirectStd) return true;
|
||||
// 启动日志重定向
|
||||
Instance.BeginOutputReadLine();
|
||||
Instance.BeginErrorReadLine();
|
||||
SaveBufferTimer.Elapsed += SaveBufferTimerEvent;
|
||||
SaveBufferTimer.Enabled = true;
|
||||
if (StartedKeywords.Count == 0) return true;
|
||||
// 等待启动
|
||||
for (var i = 0; i < 1000; i++)
|
||||
{
|
||||
|
||||
2
binaries
2
binaries
Submodule binaries updated: c9dfa296fd...85dd5611fd
Reference in New Issue
Block a user