1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Test fix #3 for freenas

This commit is contained in:
echel0n 2014-06-18 13:12:19 -07:00
parent 51247710bb
commit cefbe3859a
2 changed files with 6 additions and 13 deletions

View File

@ -351,12 +351,6 @@ def main():
loadShowsFromDB()
def startup():
if sickbeard.DAEMON:
daemonize()
# Use this PID for everything
sickbeard.PID = os.getpid()
# Fire up all our threads
sickbeard.start()
@ -379,6 +373,12 @@ def main():
if sickbeard.AUTO_UPDATE:
tornado.autoreload.start(io_loop)
if sickbeard.DAEMON:
daemonize()
# Use this PID for everything
sickbeard.PID = os.getpid()
# start IOLoop.
io_loop.start()
sickbeard.saveAndShutdown()

View File

@ -83,14 +83,7 @@ from Cheetah.Template import Template
from tornado import gen
from tornado.web import RequestHandler, HTTPError, asynchronous
# def _handle_reverse_proxy():
# if sickbeard.HANDLE_REVERSE_PROXY:
# cherrypy.lib.cptools.proxy()
# cherrypy.tools.handle_reverse_proxy = cherrypy.Tool('before_handler', _handle_reverse_proxy)
req_headers = None
def authenticated(handler_class):
def wrap_execute(handler_execute):
def basicauth(handler, transforms, *args, **kwargs):