summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-26 10:34:04 -0500
committerJeff Carr <[email protected]>2024-10-26 10:34:04 -0500
commit783a06b050048e22aac9fcc1520ca43c40226f14 (patch)
tree64189bd86ea7f8cc68e327099e0c34543c15a27c /http.go
parentca0d7ddde751a2d582a03f0ad70cec4c8c767145 (diff)
can write out working virsh xml
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
-rw-r--r--http.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/http.go b/http.go
index 350f072..468f373 100644
--- a/http.go
+++ b/http.go
@@ -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")