fix: add PYTHONDONTWRITEBYTECODE=1 and -B flag to prevent stale bytecode

This commit is contained in:
Claus Lohmar 2026-07-27 12:30:22 +00:00
parent 6fce3e0c97
commit f5755827d5

View file

@ -6,7 +6,8 @@ After=network.target
Type=simple Type=simple
User=root User=root
WorkingDirectory=/mnt/pve/host-shared/converter/backend WorkingDirectory=/mnt/pve/host-shared/converter/backend
ExecStart=/mnt/pve/host-shared/converter/venv/bin/python /mnt/pve/host-shared/converter/backend/app.py Environment=PYTHONDONTWRITEBYTECODE=1
ExecStart=/mnt/pve/host-shared/converter/venv/bin/python -B /mnt/pve/host-shared/converter/backend/app.py
Restart=always Restart=always
RestartSec=5 RestartSec=5
StandardOutput=append:/mnt/pve/host-shared/converter/logs/vm-bench-backend.log StandardOutput=append:/mnt/pve/host-shared/converter/logs/vm-bench-backend.log