wam: improve shutdown procedure
[AGL/meta-agl-demo.git] / recipes-wam / wam / files / WebAppMgr.service
index a2e58ab..082a488 100644 (file)
@@ -15,6 +15,7 @@ Description="WebAppMgr is responsible for running web apps and manage their life
 After=agl-compositor.service
 Requires=agl-compositor.service
 Before=agl-session.target
+BindTo=agl-compositor.service
 
 [Service]
 Type=simple
@@ -22,6 +23,7 @@ UMask=0077
 OOMScoreAdjust=-1000
 EnvironmentFile=-/etc/default/WebAppMgr.env
 ExecStart=/usr/bin/WebAppMgr --use-gl=egl --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --use-viz-fmp-with-timeout=0 --in-process-gpu --remote-debugging-port=9998 --user-data-dir="/home/%u/wamdata" --webos-wam --agl-shell-appid=homescreen --disable-gpu-vsync
+ExecStop=pkill -U %U WebAppMgr
 Restart=on-failure
 RestartSec=50