diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-24 15:34:22 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-24 15:34:22 (GMT) |
commit | a580e5f3b54889fdd1441be68af44f57a3797807 (patch) | |
tree | b6f87766120c9ed7555019040f26b122f7f0e8a2 /src/rhctl/main.go | |
parent | f83426f19c7f12ea161c45e8bda9e21db22959de (diff) |
added basic web interface
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 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") |