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
|
Type=simple
|
||||||
WorkingDirectory=/opt/transmute
|
WorkingDirectory=/opt/transmute
|
||||||
EnvironmentFile=/opt/transmute/backend/.env
|
EnvironmentFile=/opt/transmute/backend/.env
|
||||||
Environment=DISPLAY=:99
|
ExecStart=/usr/bin/xvfb-run -a -s "-screen 0 1024x768x24 -nolisten tcp" /opt/transmute/.venv/bin/python backend/main.py
|
||||||
ExecStartPre=/usr/bin/Xvfb :99 -screen 0 1024x768x24 -nolisten tcp
|
|
||||||
ExecStart=/opt/transmute/.venv/bin/python backend/main.py
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user