16 lines
396 B
Django/Jinja
16 lines
396 B
Django/Jinja
[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
|