ansible/roles/pretix/templates/pretix-worker.service.j2

16 lines
396 B
Plaintext
Raw Normal View History

2021-11-01 22:49:09 +01:00
[Unit]
Description=pretix background worker
After=network.target
[Service]
User={{ pretix_user }}
Group={{ pretix_group }}
Environment="VIRTUAL_ENV=/opt/pretix/venv"
Environment="PATH=/opt/pretix/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/pretix/venv/bin/celery -A pretix.celery_app worker -l info
WorkingDirectory=/opt/pretix
Restart=on-failure
[Install]
WantedBy=multi-user.target