forked from infra/ansible
16 lines
396 B
Plaintext
16 lines
396 B
Plaintext
|
[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
|