Add dinit supervisor files

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
Shin'ya Minazuki 2026-01-24 21:02:36 -03:00
commit 9f2e4fa52c
4 changed files with 22 additions and 0 deletions

4
deploy/dinit/README.md Normal file
View file

@ -0,0 +1,4 @@
# dinit
Supervisor configuration files for `dinit`, it assumes FunQuail will be installed in `/srv/funquail` with the virtual environment in the `venv` subdirectory.
Feel free to change them however you see fit.

View file

@ -0,0 +1,6 @@
type = process
working-dir = /srv/funquail/api
env-file = /srv/funquail/config/.env
command = /srv/funquail/venv/bin/python3 /srv/funquail/venv/bin/celery --app funquail_api.taskapp beat --loglevel INFO
logfile = /var/log/funquail/beat.log
run-as = funquail

View file

@ -0,0 +1,6 @@
type = process
working-dir = /srv/funquail/api
env-file = /srv/funquail/config/.env
command = /srv/funquail/venv/bin/gunicorn config.asgi:application --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 127.0.0.1:5000
logfile = /var/log/funquail/server.log
run-as = funquail

View file

@ -0,0 +1,6 @@
type = process
working-dir = /srv/funquail/api
env-file = /srv/funquail/config/.env
command = /srv/funquail/venv/bin/celery --app funquail_api.taskapp worker --loglevel INFO
logfile = /var/log/funquail/worker.log
run-as = funquail