fix(worker): enable logfile variable expansion in ExecStart (#1717)

Reenable worker log file. Related to e5385b0dac
This commit is contained in:
Jonas L 2022-03-29 14:15:26 +02:00 committed by GitHub
parent 331df277b4
commit 3962460d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -6,12 +6,13 @@ Environment=LIBRETIME_LOG_FILEPATH=/var/log/libretime/worker.log
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/airtime/airtime.conf
WorkingDirectory=/var/lib/libretime/worker
ExecStart=/usr/local/bin/celery worker \
ExecStart=/usr/bin/sh -c 'celery worker \
--app=libretime_worker.tasks:worker \
--config=libretime_worker.config \
--time-limit=1800 \
--concurrency=1 \
--loglevel=INFO
--loglevel=INFO \
--logfile=$LIBRETIME_LOG_FILEPATH'
User=libretime-worker
Group=libretime-worker
Restart=always