first iteration of background services

This commit is contained in:
Jakob Ketterl
2019-07-21 23:39:11 +02:00
parent 2d6b0f1877
commit 9c927d9001
4 changed files with 122 additions and 2 deletions

View File

@ -7,6 +7,7 @@ from owrx.feature import FeatureDetector
from owrx.source import SdrService, ClientRegistry
from socketserver import ThreadingMixIn
from owrx.sdrhu import SdrHuUpdater
from owrx.service import ServiceManager
import logging
@ -47,6 +48,8 @@ Author contact info: Andras Retzler, HA7ILM <randras@sdr.hu>
updater = SdrHuUpdater()
updater.start()
ServiceManager.getSharedInstance().start()
server = ThreadedHttpServer(("0.0.0.0", pm.getPropertyValue("web_port")), RequestHandler)
server.serve_forever()