1 # This is a system unit for launching Weston with auto-login as the
2 # user configured here.
4 # Weston must be built with systemd support, and your weston.ini must load
5 # the plugin systemd-notify.so.
7 Description=Weston, a Wayland compositor, as a system service
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 # If Plymouth is used, we want to start when it is on its way out.
16 After=plymouth-quit-wait.service
18 # D-Bus is necessary for contacting logind. Logind is required.
22 # Ensure the socket is present
23 Requires=weston.socket
25 # Since we are part of the graphical session, make sure we are started before
27 Before=graphical.target
29 # Prevent starting on systems without virtual consoles, Weston requires one
31 ConditionPathExists=/dev/tty0
34 # Requires systemd-notify.so Weston plugin.
36 EnvironmentFile=/etc/default/weston
37 ExecStart=/usr/bin/weston --modules=systemd-notify.so
39 # Optional watchdog setup
43 # The user to run Weston as.
47 # Make sure the working directory is the users home directory
48 WorkingDirectory=/home/weston
50 # Set up a full user session for the user, required by Weston.
51 PAMName=weston-autologin
53 # A virtual terminal is needed.
59 # Fail to start if not controlling the tty.
60 StandardInput=tty-fail
61 StandardOutput=journal
64 # Log this user with utmp, letting it show up with commands 'w' and 'who'.
69 # Note: If you only want weston to start on-demand, remove this line with a
71 WantedBy=graphical.target