ca9a47811af1d3344fd3d1a178ab83480b446f4a
[AGL/meta-agl-demo.git] / recipes-wam / wam / files / WebAppMgr.service
1 # @@@LICENSE
2 #
3 # Copyright (c) 2017-2018 LG Electronics, Inc.
4 #
5 # Confidential computer software. Valid license from LG required for
6 # possession, use or copying. Consistent with FAR 12.211 and 12.212,
7 # Commercial Computer Software, Computer Software Documentation, and
8 # Technical Data for Commercial Items are licensed to the U.S. Government
9 # under vendor's standard commercial license.
10 #
11 # LICENSE@@@
12
13 [Unit]
14 Description="WebAppMgr is responsible for running web apps and manage their lifecycle"
15 After=agl-compositor.service
16 Requires=agl-compositor.service
17 Before=graphical.target
18 BindTo=agl-compositor.service
19
20 [Service]
21 Type=simple
22 UMask=0077
23 OOMScoreAdjust=-1000
24 EnvironmentFile=-/etc/default/WebAppMgr.env
25 Environment=XDG_RUNTIME_DIR=/run/user/1001/
26 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 --ignore-gpu-blocklist
27 ExecStop=pkill -U %U WebAppMgr
28 Restart=on-failure
29 RestartSec=50
30
31 [Install]
32 WantedBy=graphical.target