summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/main.go b/main.go
index 7c17d5e..ab7717c 100644
--- a/main.go
+++ b/main.go
@@ -18,6 +18,7 @@ import (
"embed"
"fmt"
"os"
+ "time"
"go.wit.com/dev/alexflint/arg"
"go.wit.com/log"
@@ -37,6 +38,13 @@ func main() {
os.Exit(0)
}
+ me = new(stuff)
+ me.Zookeeper = "zookeeper.wit.com"
+ me.Hostname, _ = os.Hostname()
+ me.pollDelay = 3 * time.Second
+
+ log.DaemonMode(true)
+
installedPackages, err := getInstalledPackages()
if err != nil {
fmt.Println("Error:", err)
@@ -47,14 +55,7 @@ func main() {
for pkg, version := range installedPackages {
fmt.Printf("%s: %s\n", pkg, version)
}
- os.Exit(0)
-
- me = new(stuff)
- me.Hostname, _ = os.Hostname()
-
- log.DaemonMode(true)
-
- // reportOS()
+ go NewWatchdog()
startHTTP()
}