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 functools
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
import daemonize
|
import daemonize
|
||||||
|
@ -31,8 +29,6 @@ def start(ctx, port, no_fork):
|
||||||
"catfish", worker.PID_FILE, functools.partial(worker.run, port), verbose=True
|
"catfish", worker.PID_FILE, functools.partial(worker.run, port), verbose=True
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
# HACK: Temporary hack until https://github.com/thesharp/daemonize/pull/70 is solved
|
|
||||||
os._exit = sys.exit
|
|
||||||
daemon.start()
|
daemon.start()
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
pass
|
pass
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -13,7 +13,7 @@ setup(
|
||||||
pathon_requires=">=3.6",
|
pathon_requires=">=3.6",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"click",
|
"click",
|
||||||
"daemonize",
|
"daemonize>=2.5.0",
|
||||||
"psutil",
|
"psutil",
|
||||||
"aiohttp",
|
"aiohttp",
|
||||||
"ujson",
|
"ujson",
|
||||||
|
|
Reference in a new issue