fix: add PYTHONDONTWRITEBYTECODE=1 and -B flag to prevent stale bytecode
This commit is contained in:
parent
6fce3e0c97
commit
f5755827d5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue