diff --git a/http.go b/http.go index 44cfc88..141082c 100644 --- a/http.go +++ b/http.go @@ -3,6 +3,7 @@ package main import ( "fmt" "net/http" + "os" "strings" "go.wit.com/log" @@ -32,6 +33,12 @@ func okHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, j) return } + if tmp == "/kill" { + log.Warn("KILLED") + fmt.Fprintln(w, "KILLED") + os.Exit(-1) + return + } if tmp == "/vms" { s := poolHypervisor(hv)