Switch to unified view
a/src/mediaserver/cdplugins/uprcl/uprclinit.py | b/src/mediaserver/cdplugins/uprcl/uprclinit.py | ||
---|---|---|---|
... |
... |
||
29 | import uprcluntagged |
29 | import uprcluntagged |
30 | import uprclsearch |
30 | import uprclsearch |
31 | import uprclindex |
31 | import uprclindex |
32 | from uprclhttp import runbottle |
32 | from uprclhttp import runbottle |
33 | 33 | ||
34 | from upmplgutils import uplog |
||
34 | from uprclutils import uplog, findmyip, stringToStrings
|
35 | from uprclutils import findmyip, stringToStrings |
35 | 36 | ||
36 | try: |
37 | try: |
37 | _s = g_httphp |
38 | _s = g_httphp |
38 | except: |
39 | except: |
39 | # The recoll documents |
40 | # The recoll documents |
... |
... |
||
147 | httpthread.daemon = True |
148 | httpthread.daemon = True |
148 | httpthread.start() |
149 | httpthread.start() |
149 | 150 | ||
150 | _update_index() |
151 | _update_index() |
151 | 152 | ||
152 | uplog("Uprcl: init done")
|
153 | uplog("Init done")
|
153 | 154 | ||
154 | def uprcl_init(): |
155 | def uprcl_init(): |
155 | global g_initrunning |
156 | global g_initrunning |
156 | g_initrunning = True |
157 | g_initrunning = True |
157 | initthread = threading.Thread(target=_uprcl_init_worker) |
158 | initthread = threading.Thread(target=_uprcl_init_worker) |