diff options
Diffstat (limited to 'cmd/dryad/dryad.go')
-rw-r--r-- | cmd/dryad/dryad.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/dryad/dryad.go b/cmd/dryad/dryad.go index 4339a5a..1e79d87 100644 --- a/cmd/dryad/dryad.go +++ b/cmd/dryad/dryad.go @@ -27,6 +27,7 @@ import ( "git.tizen.org/tools/boruta/dryad" "git.tizen.org/tools/boruta/dryad/conf" dryad_rpc "git.tizen.org/tools/boruta/rpc/dryad" + superviser_rpc "git.tizen.org/tools/boruta/rpc/superviser" ) var ( @@ -86,6 +87,13 @@ func main() { go srv.Accept(l) + boruta, err := superviser_rpc.DialSuperviserClient(configuration.BorutaAddress) + exitOnErr("failed to initialize connection to boruta:", err) + defer boruta.Close() + + err = boruta.Register(configuration.Caps) + exitOnErr("failed to register to boruta:", err) + // Wait for interrupt. c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt) |