summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go21
1 files changed, 2 insertions, 19 deletions
diff --git a/main.go b/main.go
index db6449c..9dcd3dc 100644
--- a/main.go
+++ b/main.go
@@ -52,19 +52,6 @@ func main() {
os.Exit(-1)
}
- // me.cluster.Events = new(pb.Events)
- // u := uuid.New()
- // me.events.Uuid = u.String()
- // me.events.Version = "dirty v1"
-
- /*
- err := cfgfile()
- if err != nil {
- log.Warn("reading config file failed", err)
- os.Exit(-1)
- }
- */
-
for i, d := range me.cluster.Droplets {
d.CurrentState = pb.DropletState_OFF
log.Info(i, "droplet", d.Hostname)
@@ -147,12 +134,6 @@ func main() {
}
// initialize each hypervisor
for _, pbh := range me.cluster.Hypervisors {
- /*
- h := findHypervisor(pbh.Hostname)
- if h != nil {
- continue
- }
- */
// this is a new unknown droplet (not in the config file)
h := new(HyperT)
h.pb = pbh
@@ -167,6 +148,8 @@ func main() {
// start the watchdog polling for each hypervisor
for _, h := range me.hypers {
log.Info("starting polling on", h.pb.Hostname)
+ // inititialize the search directories on each hypervisor
+ h.sendDirs()
go h.NewWatchdog()
}