mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-31 06:24:18 -04:00
fix(transmute): use xvfb-run instead of ExecStartPre for Xvfb
ExecStartPre runs Xvfb as a blocking foreground process, preventing systemd from ever reaching ExecStart (timeout/failure). Use xvfb-run wrapper to properly manage the virtual display.
This commit is contained in:
@@ -87,9 +87,7 @@ After=network.target
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/transmute
|
||||
EnvironmentFile=/opt/transmute/backend/.env
|
||||
Environment=DISPLAY=:99
|
||||
ExecStartPre=/usr/bin/Xvfb :99 -screen 0 1024x768x24 -nolisten tcp
|
||||
ExecStart=/opt/transmute/.venv/bin/python backend/main.py
|
||||
ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24 -nolisten tcp" /opt/transmute/.venv/bin/python backend/main.py
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user