summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-07-17 17:42:34 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-07-22 18:23:26 +0200
commit0189e5b6b661bddd72022d5b56bccd503003a30c (patch)
tree54e42210678d76769c89df77ccc9086f9c6d2cb1
parent002d4ecd210a4b7a2ac0b836dc8a84581a72e249 (diff)
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 <philippe.schenker@toradex.com>
-rw-r--r--recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in3
1 files changed, 2 insertions, 1 deletions
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