Correctly set default value in systemd unit

This commit is contained in:
Virgile Robles 2021-04-13 22:32:15 +02:00 committed by Georg Krause
parent 1492e252ea
commit ab6484e6ec
No known key found for this signature in database
GPG Key ID: FD479B9A4D48E632
1 changed files with 2 additions and 1 deletions

View File

@ -7,8 +7,9 @@ PartOf=funkwhale.target
User=funkwhale
# adapt this depending on the path of your funkwhale installation
WorkingDirectory=/srv/funkwhale/api
Environment="CELERYD_CONCURRENCY=0"
EnvironmentFile=/srv/funkwhale/config/.env
ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY-0}
ExecStart=/srv/funkwhale/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY}
[Install]