2017-07-17 20:00:32 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Funkwhale celery worker
|
|
|
|
After=redis.service postgresql.service
|
|
|
|
PartOf=funkwhale.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=funkwhale
|
|
|
|
# adapt this depending on the path of your funkwhale installation
|
|
|
|
WorkingDirectory=/srv/funkwhale/api
|
2021-04-13 20:32:15 +00:00
|
|
|
Environment="CELERYD_CONCURRENCY=0"
|
2017-07-17 20:00:32 +00:00
|
|
|
EnvironmentFile=/srv/funkwhale/config/.env
|
2019-12-20 14:36:18 +00:00
|
|
|
|
2023-01-13 15:26:28 +00:00
|
|
|
ExecStart=/srv/funkwhale/venv/bin/celery \
|
|
|
|
--app funkwhale_api.taskapp \
|
|
|
|
worker \
|
|
|
|
--loglevel INFO \
|
|
|
|
--concurrency=${CELERYD_CONCURRENCY}
|
2017-07-17 20:00:32 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|