This commit is contained in:
Wolfgang Hottgenroth
2007-11-16 13:06:07 +01:00
parent b370beb829
commit 9f4a43c2e1
4 changed files with 37 additions and 56 deletions

View File

@ -52,8 +52,7 @@ if DEBUG:
Logger.log("yadyn starting")
entries = shelve.open(ENTRIES_FILE, flag='c', writeback=True)
statusMap = shelve.open(STATUSMAP_FILE, flag='c', writeback=True)
Logger.debug("Shelves opened")
Logger.debug("Shelve opened")
try:
eventq = Queue.Queue()
@ -66,7 +65,7 @@ try:
dynHandler.start()
Logger.debug("DynHandler started")
dnsHandler = DnsHandler.DnsHandler(dnsq, TSIGKEY, NAMESERVER, TTL, statusMap)
dnsHandler = DnsHandler.DnsHandler(dnsq, TSIGKEY, NAMESERVER, TTL)
dnsHandler.start()
Logger.debug("DnsHandler started")
@ -85,7 +84,6 @@ try:
Logger.log("yadyn running")
while True:
entries.sync()
statusMap.sync()
time.sleep(10)
finally:
entries.close()