Sync rebooting cluster-service and cluster-refgui 70/29570/2
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 31 Dec 2023 15:44:40 +0000 (00:44 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 29 Jan 2024 12:01:29 +0000 (12:01 +0000)
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 <naoto.yamaguchi@aisin.co.jp>
meta-agl-ic-container/recipes-core/cluster-service/cluster-service/cluster-service.service
meta-agl-ic-container/recipes-demo/cluster-refgui/cluster-refgui/cluster.service
meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest/weston.service

index a82c412..83e957e 100644 (file)
@@ -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
index 5f23ea7..94a2a53 100644 (file)
@@ -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