diff --git a/gunicorn.service b/gunicorn.service index 0ae9d16..ec48852 100644 --- a/gunicorn.service +++ b/gunicorn.service @@ -10,7 +10,7 @@ Group=root RuntimeDirectory=gunicorn WorkingDirectory=/code/dingxin_toolbox_drf -ExecStart=/code/dingxin-server/bin/gunicorn -c /code/dingxin_toolbox_drf/gunicorn_config.py -k uvicorn.workers.UvicornWorker dingxin_toolbox_drf.asgi:application +ExecStart=/code/dingxin-server/bin/gunicorn -c /code/dingxin_toolbox_drf/gunicorn_config.py ExecReload=/bin/kill -s hup $mainpid ExecStop=/bin/kill -s quit $mainpid PrivateTmp=true