1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_pretix.git synced 2024-10-28 22:01:03 +01:00
ansible_collection_pretix/roles/pretix/templates/pretix-web.service.j2
2024-10-14 12:06:26 +02:00

20 lines
632 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=pretix web service
After=network.target
[Service]
User={{ pretix__user }}
Group={{ pretix__group }}
Environment="VIRTUAL_ENV={{ pretix__data }}/venv"
Environment="PATH={{ pretix__data }}/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart={{ pretix__data }}/venv/bin/gunicorn pretix.wsgi \
--name pretix --workers {{ pretix__web_workers }} \
--max-requests 1200 --max-requests-jitter 50 \
--log-level={{ pretix__web_loglevel }} --bind={{ pretix__web_bind }}
WorkingDirectory={{ pretix__data }}
Restart=on-failure
[Install]
WantedBy=multi-user.target