summaryrefslogtreecommitdiff
path: root/src/rhctl/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhctl/main.go')
-rw-r--r--src/rhctl/main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rhctl/main.go b/src/rhctl/main.go
index 2302e6b..f09fe73 100644
--- a/src/rhctl/main.go
+++ b/src/rhctl/main.go
@@ -109,6 +109,11 @@ func main() {
return
}
web := WebInit(conf, ctrl)
+ nop, err := NopTCPInit(conf, ctrl)
+ if err != nil {
+ rhl.Printf("Error: failed to initialize nop-tcp interface: %v", err)
+ return
+ }
//**************************************************
// running essential parts
@@ -154,6 +159,14 @@ func main() {
}()
}
+ if conf.Clients.Noptcp.Address != "" {
+ go func() {
+ rhl.Printf("starting nop-tcp interface")
+ nop.Run()
+ rhl.Printf("nop-tcp interface just stopped")
+ }()
+ }
+
//**************************************************
<-stop
rhl.Printf("at least one essential part has stopped - bringing down the whole process")