diff options
| author | Jeff Carr <[email protected]> | 2024-10-26 10:34:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-26 10:34:04 -0500 |
| commit | 783a06b050048e22aac9fcc1520ca43c40226f14 (patch) | |
| tree | 64189bd86ea7f8cc68e327099e0c34543c15a27c /http.go | |
| parent | ca0d7ddde751a2d582a03f0ad70cec4c8c767145 (diff) | |
can write out working virsh xml
Signed-off-by: Jeff Carr <[email protected]>
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") |
