diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -38,6 +38,13 @@ func okHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, j) return } + + // exit the virtigo daemon & have systemd restart it + // this can happen & when it does, access to + // to libvirtd will hang (aka: virsh list will hang) + // One way to trigger this is to not properly close + // domain sockets opened from go-qemu/hypervisor + // it's a good idea in any case so leave it here if tmp == "/kill" { log.Warn("KILLED") fmt.Fprintln(w, "KILLED") |
