From 0189e5b6b661bddd72022d5b56bccd503003a30c Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Fri, 17 Jul 2020 17:42:34 +0200 Subject: wayland-app-launch: restart app only in case of a failure And limit the restart to once per second. Related-to: ELB-2838 Signed-off-by: Philippe Schenker --- .../wayland-app-launch/wayland-app-launch.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in index c0f15b1..4be53a4 100644 --- a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in +++ b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in @@ -4,10 +4,11 @@ After=weston@root.service Requires=weston@root.service [Service] -Restart=always +Restart=on-failure Type=forking Environment=@@application-environment@@ ExecStart=/usr/bin/wayland-app-launch.sh +RestartSec=1 [Install] WantedBy=multi-user.target -- cgit v1.2.3