fixed priority issue that was preventing daemonization

This commit is contained in:
Remy
2011-05-23 22:36:55 -07:00
parent d88f097dab
commit 9d050b9edb
3 changed files with 3 additions and 7 deletions

View File

@@ -70,6 +70,7 @@ def serverstart():
{settings['http_username']:settings['http_password']})
})
if options.daemonize:
Daemonizer(cherrypy.engine).subscribe()

View File

@@ -97,8 +97,4 @@ def searchNZB(albumid=None):
conn.commit()
c.close()

View File

@@ -18,16 +18,15 @@ class threadtool(SimplePlugin):
self.thread = threading.Thread(target=self.run)
self.thread.start()
self.sched.start()
start.priority = 80
def stop(self):
self.running = False
print '''Shutting down'''
if self.thread:
self.thread.join()
self.thread = None
self.running = False
self.sched.shutdown()
stop.priority = 10
def run(self):
import updater