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.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rhctl/main.go b/src/rhctl/main.go
index 86e7aec..b0b57e6 100644
--- a/src/rhctl/main.go
+++ b/src/rhctl/main.go
@@ -104,6 +104,7 @@ func main() {
// initializing non-essential parts, like control-interfaces aka clients
telnet := TelnetInit(conf, ctrl)
+ web := WebInit(conf, ctrl)
//**************************************************
// running essential parts
@@ -141,6 +142,14 @@ func main() {
}()
}
+ if conf.Clients.Web.Address != "" {
+ go func() {
+ rhl.Printf("starting web interface")
+ web.Run()
+ rhl.Printf("web interface just stopped")
+ }()
+ }
+
//**************************************************
<-stop
rhl.Printf("at least one essential part has stopped - bringing down the whole process")