agl-compositor.service.in: Add default EnvironmentFile
[AGL/meta-agl.git] / meta-app-framework / recipes-graphics / wayland / agl-compositor-init / agl-compositor.service.in
1 #
2 # Weston must be built with systemd support, and your weston.ini must load
3 # the plugin systemd-notify.so.
4
5 [Unit]
6 Description=agl-compositor, a Wayland compositor, as a systemd user service
7 Documentation=https://docs.automotivelinux.org/en/master/#5_Component_Documentation/1_agl-compositor/
8
9 # Activate using a systemd socket
10 Requires=agl-compositor.socket
11 After=agl-compositor.socket
12
13 # Since we are part of the agl session, make sure we are started before
14 # it is complete.
15 Before=agl-session.target
16
17 [Service]
18 Type=notify
19 EnvironmentFile=-/etc/default/agl-compositor
20 ExecStart=/usr/bin/agl-compositor @AGL_COMPOSITOR_ARGS@
21
22 TimeoutStartSec=60
23 WatchdogSec=20
24
25 StandardOutput=journal
26 StandardError=journal
27
28 [Install]
29 WantedBy=agl-session.target