diff options
Diffstat (limited to 'src/rhctl/main.go')
-rw-r--r-- | src/rhctl/main.go | 9 |
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") } |