From 8be754aa31109aaa9043ec6a90a74f92a7a99e01 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 20 Oct 2013 22:46:49 +0200 Subject: [PATCH] start jsonrpc backend if configured --- bin/linspector | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/bin/linspector b/bin/linspector index e58f486..f2939eb 100755 --- a/bin/linspector +++ b/bin/linspector @@ -127,16 +127,10 @@ def main(): interface = LinspectorInterface(jobs, scheduler, linConf) - #x = JsonrpcBackend(interface) - #x.daemon = True - #x.start() - #TODO: load all backends in a loop - ''' - for backend in backends.enabled - backend.start - - take care of signals etc. to sthutdown the threads when stopping linspector. - ''' + if core["jsonrpc_backend"]: + jsonrpc = JsonrpcBackend(interface) + jsonrpc.daemon = True + jsonrpc.start() LishFrontend(interface)