|
@@ -67,7 +67,7 @@ public class ExecUtil {
|
|
|
try {
|
|
|
String path = ClientInfoUtil.path;
|
|
|
// 启动进程
|
|
|
- process = Runtime.getRuntime().exec(path + "/telegraf.exe --config " + path + "/telegraf.conf --watch-config");
|
|
|
+ process = Runtime.getRuntime().exec(path + "/telegraf.exe --config " + path + "/telegraf.conf --watch-config --config-directory ");
|
|
|
String logFile = path + "/log/telegraf_" + System.currentTimeMillis() + ".log";
|
|
|
FileUtil.touch(logFile);
|
|
|
writer = new FileWriter(logFile);
|