Archived
0

Zond: убрана информация для отладки

This commit is contained in:
2017-07-24 23:45:49 +03:00
parent 65b680cef4
commit 87301cd8e9
2 changed files with 1 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
group = 'asys' group = 'asys'
version = '0.7.15-SNAPSHOT' version = '0.7.16-SNAPSHOT'
apply plugin: 'application' apply plugin: 'application'
@@ -46,5 +46,4 @@ dependencies {
included group: 'io.netty', name: 'netty-codec', version: nettyVersion included group: 'io.netty', name: 'netty-codec', version: nettyVersion
included group: 'com.google.guava', name: 'guava', version: '21.0' included group: 'com.google.guava', name: 'guava', version: '21.0'
included group: 'com.sun.jna', name: 'jna', version: '3.0.9' included group: 'com.sun.jna', name: 'jna', version: '3.0.9'
} }

View File

@@ -69,12 +69,9 @@ public class ZondExecuteWatchdog extends ExecuteWatchdog {
if (pid != -1 && cmdkiller != null && !cmdkiller.isEmpty()) { if (pid != -1 && cmdkiller != null && !cmdkiller.isEmpty()) {
try { try {
String cmd = cmdkiller.replace("%PID", String.valueOf(pid)); String cmd = cmdkiller.replace("%PID", String.valueOf(pid));
Shell.getInstance().getOutput().println("CMDKILL: '" + cmd + "'");
Runtime.getRuntime().exec(cmd); Runtime.getRuntime().exec(cmd);
} catch (IOException ignore) { } catch (IOException ignore) {
} }
} else {
Shell.getInstance().getOutput().println("PID = -1");
} }
} }
} }