22 lines
595 B
Desktop File
22 lines
595 B
Desktop File
[Unit]
|
|
Description=FunQuail application server
|
|
After=redis.service postgresql.service
|
|
PartOf=funquail.target
|
|
|
|
[Service]
|
|
User=funquail
|
|
# adapt this depending on the path of your funquail installation
|
|
WorkingDirectory=/srv/funquail/api
|
|
EnvironmentFile=/srv/funquail/config/.env
|
|
|
|
Type=notify
|
|
KillMode=mixed
|
|
ExecStart=/srv/funquail/venv/bin/gunicorn \
|
|
config.asgi:application \
|
|
--workers ${FUNQUAIL_WEB_WORKERS} \
|
|
--worker-class uvicorn.workers.UvicornWorker \
|
|
--bind ${FUNQUAIL_API_IP}:${FUNQUAIL_API_PORT}
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|