summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-21 19:48:09 -0600
committerJeff Carr <[email protected]>2024-11-21 19:48:09 -0600
commit22d49578c99e7c77ca7f6bd4691e3d88a7cfc7f5 (patch)
treebf72bc245dccbd82beca9e77130e9b0f5bfa1db0 /main.go
parentf5144e4b8ae85d86e7d8172b2aa9d6b3da3e8835 (diff)
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/main.go b/main.go
index 3b5bbba..0329ad5 100644
--- a/main.go
+++ b/main.go
@@ -8,7 +8,6 @@ import (
"time"
"go.wit.com/dev/alexflint/arg"
- "go.wit.com/lib/protobuf/zoopb"
"go.wit.com/log"
)
@@ -35,21 +34,10 @@ func main() {
me = new(stuff)
me.urlbase = "http://zookeeper.grid.wit.com:8080"
- me.hostname, _ = os.Hostname()
me.pollDelay = 3 * time.Second
me.failcountmax = 20 // die every minute if zookeeper can't be found
- // what OS?
- me.distro = initDistro()
-
- // init my machine protobuf
- me.machine = new(zoopb.Machine)
- me.machine.Packages = new(zoopb.Packages)
- me.machine.Hostname = me.hostname
-
- // init the installed package list
- // me.packages = new(zoopb.Packages)
- initPackages()
+ me.machine.ConfigLoad()
go NewWatchdog()