Remove daemonize hack, as PR shippped

Fixed by https://github.com/thesharp/daemonize/pull/70
This commit is contained in:
Jake Howard 2018-12-20 14:04:57 +00:00
parent 895e159502
commit 1706f81ce5
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 1 additions and 5 deletions

View file

@ -1,6 +1,4 @@
import functools
import os
import sys
import click
import daemonize
@ -31,8 +29,6 @@ def start(ctx, port, no_fork):
"catfish", worker.PID_FILE, functools.partial(worker.run, port), verbose=True
)
try:
# HACK: Temporary hack until https://github.com/thesharp/daemonize/pull/70 is solved
os._exit = sys.exit
daemon.start()
except SystemExit:
pass

View file

@ -13,7 +13,7 @@ setup(
pathon_requires=">=3.6",
install_requires=[
"click",
"daemonize",
"daemonize>=2.5.0",
"psutil",
"aiohttp",
"ujson",