forked from infra/ansible
16 lines
404 B
Plaintext
16 lines
404 B
Plaintext
|
[Unit]
|
||
|
Description=pretalx background worker
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User={{ pretalx_user }}
|
||
|
Group={{ pretalx_group }}
|
||
|
Environment="VIRTUAL_ENV=/opt/pretalx/venv"
|
||
|
Environment="PATH=/opt/pretalx/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
||
|
ExecStart=/opt/pretalx/venv/bin/celery -A pretalx.celery_app worker -l info
|
||
|
WorkingDirectory=/opt/pretalx
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|