From ae7e524f077e249ba2c04c7f12c3a317081925ff Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Mon, 1 Jan 2024 00:44:40 +0900 Subject: Sync rebooting cluster-service and cluster-refgui The cluster-refgui shall re-connect in case of cluster-service rebooting. This method should support to realize robustness system. This patch add support sync rebootig feature. Bug-AGL: SPEC-5040 Change-Id: Iadd1c254d4b8e32be15419b3526dc581333a5456 Signed-off-by: Naoto Yamaguchi --- .../cluster-service/cluster-service/cluster-service.service | 2 ++ .../recipes-demo/cluster-refgui/cluster-refgui/cluster.service | 4 +++- .../recipes-graphics/wayland/weston-init-guest/weston.service | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service b/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service index e3ce37c0..28a5a86b 100644 --- a/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service +++ b/meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service @@ -6,6 +6,8 @@ Requires=basic.target [Service] Type=notify ExecStart=/usr/bin/cluster_service +Restart=on-failure +StartLimitInterval=0 [Install] WantedBy=basic.target diff --git a/meta-agl-ic-container/recipes-demo/cluster-refgui/cluster-refgui/cluster.service b/meta-agl-ic-container/recipes-demo/cluster-refgui/cluster-refgui/cluster.service index a82c4127..83e957e5 100644 --- a/meta-agl-ic-container/recipes-demo/cluster-refgui/cluster-refgui/cluster.service +++ b/meta-agl-ic-container/recipes-demo/cluster-refgui/cluster-refgui/cluster.service @@ -1,11 +1,13 @@ [Unit] Description=AGL Cluster Reference GUI After=multi-user.target weston.service -Requires=multi-user.target weston.service +PartOf=cluster-service.service weston.service [Service] EnvironmentFile=/etc/default/cluster ExecStart=/opt/apps/cluster +Restart=on-failure +StartLimitInterval=0 [Install] WantedBy=multi-user.target diff --git a/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest/weston.service b/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest/weston.service index 5f23ea79..94a2a530 100644 --- a/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest/weston.service +++ b/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest/weston.service @@ -12,6 +12,8 @@ StandardError=journal PermissionsStartOnly=true IgnoreSIGPIPE=no Type=notify +Restart=on-failure +StartLimitInterval=0 ExecStart=/usr/bin/weston --config /etc/xdg/weston/weston.ini --idle-time=0 --drm-lease=${DRM_LEASE_DEVICE} --log=/var/log/weston.log -- cgit 1.2.3-korg