Skip to content

Commit

Permalink
fabric8io#186: I guess it was a copy/paste mistake, but stop should u…
Browse files Browse the repository at this point in the history
…se the stop command
  • Loading branch information
davsclaus committed Dec 4, 2014
1 parent e5e3de3 commit 1400eed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1400eed

Please sign in to comment.