summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'event.go')
-rw-r--r--event.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/event.go b/event.go
index 5a31eb1..ec47c6e 100644
--- a/event.go
+++ b/event.go
@@ -1,9 +1,16 @@
package main
import (
+ "go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
func (d *DropletT) Start() {
log.Info("a new virtual machine is running")
}
+
+func (h *HyperT) RestartDaemon() {
+ url := "http://" + h.Hostname + ":2520/kill"
+ s := shell.Wget(url)
+ log.Info("EVENT RestartDaemon", url, s)
+}