sintonia/worker/install/systemd/libretime-celery.service
jo 9b6d657fd6 feat(worker): load config using shared helpers
BREAKING CHANGE: The worker `RMQ_CONFIG_FILE` environement variable has
been renamed to `LIBRETIME_CONFIG_FILEPATH`. In addition the systemd
working directory for the worker has changed from `/srv/airtime` to
`/var/lib/libretime/worker`.
2022-02-25 11:48:57 +02:00

19 lines
449 B
Desktop File

[Unit]
Description=LibreTime Worker Service
[Service]
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/airtime/airtime.conf
WorkingDirectory=/var/lib/libretime/worker
ExecStart=/usr/local/bin/celery worker \
--app=libretime_worker.tasks:worker \
--config=libretime_worker.config \
--time-limit=1800 \
--concurrency=1 \
--loglevel=INFO
User=libretime-worker
Group=libretime-worker
Restart=always
[Install]
WantedBy=multi-user.target