diff --git a/process-manager/src/main/java/io/fabric8/jube/process/support/DefaultProcessController.java b/process-manager/src/main/java/io/fabric8/jube/process/support/DefaultProcessController.java index 556094c..14f1e22 100644 --- a/process-manager/src/main/java/io/fabric8/jube/process/support/DefaultProcessController.java +++ b/process-manager/src/main/java/io/fabric8/jube/process/support/DefaultProcessController.java @@ -115,7 +115,7 @@ public int start() throws Exception { @Override public int stop() throws Exception { - String customCommand = config.getKillCommand(); + String customCommand = config.getStopCommand(); if (Strings.isNullOrEmpty(customCommand)) { // lets just kill it LOG.info("No stop command configured so lets just try killing it " + this); @@ -129,7 +129,7 @@ public int kill() throws Exception { String customCommand = config.getKillCommand(); if (Strings.isNullOrEmpty(customCommand)) { // lets stop it - LOG.info("No kill command configured so lets just try killing it " + this); + LOG.info("No kill command configured so lets just try killing it with -9 " + this); return Processes.killProcess(getPid(), "-9"); } return runConfigCommandValueOrLaunchScriptWith(customCommand, "kill"); @@ -175,7 +175,7 @@ public File getBaseDir() { public Executor getExecutor() { if (executor == null) { - executor = newFixedThreadPool(THREADS_PER_CONTROLLER, new ThreadFactoryBuilder().setDaemon(true).setNameFormat("fuse-process-controller-%s").build()); + executor = newFixedThreadPool(THREADS_PER_CONTROLLER, new ThreadFactoryBuilder().setDaemon(true).setNameFormat("jube-process-controller-%s").build()); } return executor; }