]> www.average.org Git - loctrkd.git/blobdiff - gps303/__main__.py
initial storage service
[loctrkd.git] / gps303 / __main__.py
index 51e462c3fcdf07b68fa5024bf7334dcdb83af522..461c4504e32ceae9e2cc2ccb576866dfc2d78049 100755 (executable)
@@ -27,12 +27,12 @@ if __name__.endswith("__main__"):
     log.setLevel(DEBUG if "-d" in opts else INFO)
     log.info("starting with options: %s", opts)
 
-    initdb(conf.get("daemon", "dbfn"))
+    initdb(conf.get("storage", "dbfn"))
     set_config(conf)
 
     ctlsock = socket(AF_INET, SOCK_STREAM)
     ctlsock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
-    ctlsock.bind(("", conf.getint("daemon", "port")))
+    ctlsock.bind(("", conf.getint("collector", "port")))
     ctlsock.listen(5)
     ctlfd = ctlsock.fileno()
     pollset = poll()