ed15040fbcd7b80eff71aa7c13dfdd81a81ffec7
[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=@WAM_EXE_DIR@/WebAppMgr $WAM_SWITCHES
27 ExecStop=pkill -U %U WebAppMgr
28 Restart=on-failure
29 RestartSec=50
30
31 [Install]
32 WantedBy=graphical.target