Bugs found and fixed: - converter.py: STAGING_IN.iterdir() → extract_base.iterdir() (checked wrong dir when source was in session subdir) - vm-bench.service: TMPDIR=/mnt/converter/in → /mnt/converter/tmp (old path poisoned all temp file writes) - backend/app.py: removed unused STAGING_IN constant - converter.py: removed unused STAGING_OUT constant - install.sh: removed creation of old /in and /out dirs
17 lines
486 B
Desktop File
17 lines
486 B
Desktop File
[Unit]
|
|
Description=VM Bench — Proxmox Image Conversion Frontend
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/mnt/converter/frontend
|
|
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
Environment=BACKEND_URL=http://10.2.0.2:9000
|
|
Environment=TMPDIR=/mnt/converter/tmp
|
|
ExecStart=/usr/bin/python3 -m uvicorn app:app --host 0.0.0.0 --port 5000 --timeout-keep-alive 300
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|