@@ -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
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(+)