diff mbox series

weston-init: retry startup after delayed DRM probing

Message ID 20261201112903.789392-1-yash.gupta@oss.qualcomm.com
State New
Headers show
Series weston-init: retry startup after delayed DRM probing | expand

Commit Message

Yash Gupta Dec. 1, 2026, 11:29 a.m. UTC
Weston can exit before a DRM device finishes probing and then remain
stopped for the rest of the boot. Retry failed starts with a rate limit
so Weston can recover without an endless rapid restart loop.

Validated the rendered service and socket with systemd-analyze verify.

Signed-off-by: Yash Gupta <yash.gupta@oss.qualcomm.com>
---
 meta/recipes-graphics/wayland/weston-init/weston.service | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service
index b7e845e88d..f4276e662b 100644
--- a/meta/recipes-graphics/wayland/weston-init/weston.service
+++ b/meta/recipes-graphics/wayland/weston-init/weston.service
@@ -30,12 +30,20 @@  Before=graphical.target
 # for now.
 ConditionPathExists=/dev/tty0
 
+# Limit repeated startup failures when DRM devices remain unavailable.
+StartLimitIntervalSec=60s
+StartLimitBurst=5
+
 [Service]
 # Requires systemd-notify.so Weston plugin.
 Type=notify
 EnvironmentFile=@sysconfdir@/default/weston
 ExecStart=@bindir@/weston --modules=systemd-notify.so
 
+# Retry failed starts to allow delayed DRM probing to complete.
+Restart=on-failure
+RestartSec=5s
+
 # Optional watchdog setup
 #TimeoutStartSec=60
 #WatchdogSec=20