[wam][cef] Fix wam user and working directory
[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 nss-agl-driver-db.service
16 Requires=agl-compositor.service nss-agl-driver-db.service
17 Before=graphical.target
18 BindTo=agl-compositor.service
19
20 [Service]
21 User=agl-driver
22 WorkingDirectory=/home/agl-driver
23 Type=simple
24 UMask=0077
25 OOMScoreAdjust=-1000
26 EnvironmentFile=-/etc/default/WebAppMgr.env
27 Environment=XDG_RUNTIME_DIR=/run/user/1001/
28 ExecStart=@WAM_EXE_DIR@/WebAppMgr $WAM_SWITCHES
29 ExecStop=pkill -U %U WebAppMgr
30 Restart=on-failure
31 RestartSec=50
32
33 [Install]
34 WantedBy=graphical.target