summaryrefslogtreecommitdiff
path: root/src/rhctl/main.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-03-27 19:41:48 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-03-27 19:41:48 (GMT)
commit3b9dc5639b9b26bb5a8e4324de47f77a00e0e86a (patch)
treeaa70228a431945685a81ba711a72c8c6a3529e7a /src/rhctl/main.go
parent6d2348f42b3e63109795c2d9578705d06b387cbb (diff)
added SwitchCTRL
Diffstat (limited to 'src/rhctl/main.go')
-rw-r--r--src/rhctl/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rhctl/main.go b/src/rhctl/main.go
index 23a7f13..f529265 100644
--- a/src/rhctl/main.go
+++ b/src/rhctl/main.go
@@ -97,6 +97,8 @@ func main() {
return
}
+ ctrl := SwitchControlInit(conf, sw, servers)
+
// running essential parts
stop := make(chan bool)
@@ -116,6 +118,13 @@ func main() {
}(server)
}
+ go func() {
+ rhl.Printf("starting switch control")
+ ctrl.Run()
+ rhl.Printf("switch control has stopped")
+ stop <- true
+ }()
+
<-stop
rhl.Printf("at least one essential part has stopped - bringing down the whole process")
}