fix(api): improve signal handling for systemd services
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2331>
This commit is contained in:
parent
7d474dea72
commit
d4d6fa9b82
|
@ -0,0 +1 @@
|
||||||
|
Improve signal handling for service and containers
|
|
@ -9,11 +9,14 @@ User=funkwhale
|
||||||
WorkingDirectory=/srv/funkwhale/api
|
WorkingDirectory=/srv/funkwhale/api
|
||||||
EnvironmentFile=/srv/funkwhale/config/.env
|
EnvironmentFile=/srv/funkwhale/config/.env
|
||||||
|
|
||||||
|
Type=notify
|
||||||
|
KillMode=mixed
|
||||||
ExecStart=/srv/funkwhale/venv/bin/gunicorn \
|
ExecStart=/srv/funkwhale/venv/bin/gunicorn \
|
||||||
config.asgi:application \
|
config.asgi:application \
|
||||||
--workers ${FUNKWHALE_WEB_WORKERS} \
|
--workers ${FUNKWHALE_WEB_WORKERS} \
|
||||||
--worker-class uvicorn.workers.UvicornWorker \
|
--worker-class uvicorn.workers.UvicornWorker \
|
||||||
--bind ${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}
|
--bind ${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue