[Unit] Description=pretalx web service 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/gunicorn pretalx.wsgi \ --name pretalx --workers 5 \ --max-requests 1200 --max-requests-jitter 50 \ --log-level=info --bind=127.0.0.1:8345 WorkingDirectory=/opt/pretalx Restart=on-failure [Install] WantedBy=multi-user.target