fix: use absolute path of python

Poetry can not run with Systemd DynamicUser option
develop
c-cal 3 years ago
parent c1ad88e08d
commit 9b30cf6fcd
Signed by: watcha
GPG Key ID: 87DD78E7F7A1581D
  1. 2
      miscellaneous/systemd/jitsi-matrix-auth-proxy.service

@ -9,7 +9,7 @@ After=network.target
Type=notify
DynamicUser=yes
WorkingDirectory=/opt/jitsi-matrix-auth-proxy/jitsi_matrix_auth_proxy
ExecStart=/opt/poetry/bin/poetry run gunicorn server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker
ExecStart=/opt/jitsi-matrix-auth-proxy/.venv/bin/python -m gunicorn server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5

Loading…
Cancel
Save