1 # This is a system unit for launching AGL compositor with auto-login as the
2 # user configured here.
4 # AGL compositor and Weston must be built with systemd support, and your
5 # weston.ini must load the plugin systemd-notify.so.
7 Description=AGL compositor
8 Documentation=man:weston(1) man:weston.ini(5)
9 Documentation=http://wayland.freedesktop.org/
11 # Make sure we are started after logins are permitted.
12 Requires=systemd-user-sessions.service
13 After=systemd-user-sessions.service
15 # D-Bus is necessary for contacting logind. Logind is required.
19 # Ensure the socket is present
20 Requires=agl-compositor.socket
22 # Since we are part of the graphical session, make sure we are started before
24 Before=graphical.target
26 # Prevent starting on systems without virtual consoles, Weston requires one
28 ConditionPathExists=/dev/tty0
31 # Requires systemd-notify.so Weston plugin.
33 EnvironmentFile=-/etc/default/agl-compositor
34 ExecStart=/usr/bin/agl-compositor --modules=systemd-notify.so
44 # Make sure the working directory is the users home directory
45 WorkingDirectory=/home/agl-driver
47 # Set up a full user session for the user
48 PAMName=agl-compositor-autologin
50 # A virtual terminal is needed.
56 # Fail to start if not controlling the tty.
57 StandardInput=tty-fail
58 StandardOutput=journal
61 # Log this user with utmp, letting it show up with commands 'w' and 'who'.
66 # Note: If you only want weston to start on-demand, remove this line with a
68 WantedBy=graphical.target