fix(api): improve signal handling for systemd services

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2331>
This commit is contained in:
jo 2023-01-17 16:48:22 +01:00 committed by Marge
parent 7d474dea72
commit d4d6fa9b82
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Improve signal handling for service and containers

View File

@ -9,11 +9,14 @@ User=funkwhale
WorkingDirectory=/srv/funkwhale/api
EnvironmentFile=/srv/funkwhale/config/.env
Type=notify
KillMode=mixed
ExecStart=/srv/funkwhale/venv/bin/gunicorn \
config.asgi:application \
--workers ${FUNKWHALE_WEB_WORKERS} \
--worker-class uvicorn.workers.UvicornWorker \
--bind ${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}
ExecReload=/bin/kill -s HUP $MAINPID
[Install]
WantedBy=multi-user.target