Merge pull request #1801 from hashicorp/f-signals

Consul-template signal change mode
This commit is contained in:
Alex Dadgar
2016-10-18 11:23:47 -07:00
committed by GitHub
24 changed files with 542 additions and 23 deletions

View File

@@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"runtime"
@@ -365,6 +366,10 @@ func (h *javaHandle) Update(task *structs.Task) error {
return nil
}
func (h *javaHandle) Signal(s os.Signal) error {
return h.executor.Signal(s)
}
func (h *javaHandle) Kill() error {
if err := h.executor.ShutDown(); err != nil {
if h.pluginClient.Exited() {