Remove daemonize hack, as PR shippped
Fixed by https://github.com/thesharp/daemonize/pull/70
This commit is contained in:
parent
895e159502
commit
1706f81ce5
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
2
setup.py
2
setup.py
|
@ -13,7 +13,7 @@ setup(
|
|||
pathon_requires=">=3.6",
|
||||
install_requires=[
|
||||
"click",
|
||||
"daemonize",
|
||||
"daemonize>=2.5.0",
|
||||
"psutil",
|
||||
"aiohttp",
|
||||
"ujson",
|
||||
|
|
Reference in a new issue