corrected backend-check
This commit is contained in:
parent
a0e69d859d
commit
7a8ddc332f
1 changed files with 15 additions and 9 deletions
|
|
@ -126,16 +126,22 @@ def main():
|
||||||
|
|
||||||
interface = LinspectorInterface(jobs, scheduler, linConf)
|
interface = LinspectorInterface(jobs, scheduler, linConf)
|
||||||
|
|
||||||
try:
|
if "jsonrpc_backend" in core and core["jsonrpc_backend"]:
|
||||||
core["jsonrpc_backend"]
|
|
||||||
except KeyError:
|
|
||||||
log.debug("jsonrpc_backend not set in core")
|
|
||||||
else:
|
|
||||||
if core["jsonrpc_backend"]:
|
|
||||||
jsonrpc = JsonrpcBackend(interface, core)
|
jsonrpc = JsonrpcBackend(interface, core)
|
||||||
jsonrpc.daemon = True
|
jsonrpc.daemon = True
|
||||||
jsonrpc.start()
|
jsonrpc.start()
|
||||||
|
|
||||||
|
|
||||||
|
#try:
|
||||||
|
# core["jsonrpc_backend"]
|
||||||
|
#except KeyError:
|
||||||
|
# log.debug("jsonrpc_backend not set in core")
|
||||||
|
#else:
|
||||||
|
# if core["jsonrpc_backend"]:
|
||||||
|
# jsonrpc = JsonrpcBackend(interface, core)
|
||||||
|
# jsonrpc.daemon = True
|
||||||
|
# jsonrpc.start()
|
||||||
|
|
||||||
LishFrontend(interface)
|
LishFrontend(interface)
|
||||||
|
|
||||||
log.debug("shutting down scheduler")
|
log.debug("shutting down scheduler")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue