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
2 changed files with 4 additions and 0 deletions
1
changes/changelog.d/improve-signal-handling.bugfix
Normal file
1
changes/changelog.d/improve-signal-handling.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Improve signal handling for service and containers
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue