SPEC-3723: restructure meta-agl-demo
[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=afm-service-homescreen-service--0.1--main@%i.service weston@display.service
16 Wants=afm-service-homescreen-service--0.1--main@%i.service
17 BindsTo=weston@display.service
18
19 [Service]
20 Type=simple
21 User=%i
22 Slice=user-%i.slice
23 SmackProcessLabel=System
24 SupplementaryGroups=audio display
25 UMask=0077
26 CapabilityBoundingSet=
27 OOMScoreAdjust=-1000
28 EnvironmentFile=-/etc/default/WebAppMgr.env
29 Environment=XDG_RUNTIME_DIR=/run/user/%i
30 Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%i/bus
31 Environment=WAM_DATA_PATH="/home/%i/wamdata"
32 ExecStart=/usr/bin/WebAppMgr --no-sandbox --in-process-gpu --remote-debugging-port=9998 --user-data-dir="/home/%i/wamdata" --webos-wam
33 Restart=on-failure
34 RestartSec=50
35
36 [Install]
37 WantedBy=default.target