summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston-init/weston@.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init/weston@.service')
-rw-r--r--meta/recipes-graphics/wayland/weston-init/weston@.service69
1 files changed, 59 insertions, 10 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston@.service b/meta/recipes-graphics/wayland/weston-init/weston@.service
index 39e193014a..0a1df15bdf 100644
--- a/meta/recipes-graphics/wayland/weston-init/weston@.service
+++ b/meta/recipes-graphics/wayland/weston-init/weston@.service
@@ -1,15 +1,64 @@
1# This is a system unit for launching Weston with auto-login as the
2# user configured here.
3#
4# Weston must be built with systemd support, and your weston.ini must load
5# the plugin systemd-notify.so.
1[Unit] 6[Unit]
2Description=Weston Wayland Compositor 7Description=Weston, a Wayland compositor, as a system service
3RequiresMountsFor=/run 8Documentation=man:weston(1) man:weston.ini(5)
4Conflicts=plymouth-quit.service 9Documentation=http://wayland.freedesktop.org/
5After=systemd-user-sessions.service plymouth-quit-wait.service 10
11# Make sure we are started after logins are permitted.
12After=systemd-user-sessions.service
13
14# If Plymouth is used, we want to start when it is on its way out.
15After=plymouth-quit-wait.service
16
17# D-Bus is necessary for contacting logind. Logind is required.
18Wants=dbus.socket
19After=dbus.socket
20
21# Since we are part of the graphical session, make sure we are started before
22# it is complete.
23Before=graphical.target
24
25# Prevent starting on systems without virtual consoles, Weston requires one
26# for now.
27ConditionPathExists=/dev/tty0
6 28
7[Service] 29[Service]
8User=%i 30# Requires systemd-notify.so Weston plugin.
9PAMName=login 31Type=notify
10EnvironmentFile=-/etc/default/weston 32ExecStart=/usr/bin/weston --modules=systemd-notify.so
33
34# Optional watchdog setup
35TimeoutStartSec=60
36WatchdogSec=20
37
38# The user to run Weston as.
39User=%I
40
41# Make sure working directory is users home directory
42WorkingDirectory=/home/%i
43
44# Set up a full user session for the user, required by Weston.
45PAMName=weston-autologin
46
47# A virtual terminal is needed.
48TTYPath=/dev/tty7
49TTYReset=yes
50TTYVHangup=yes
51TTYVTDisallocate=yes
52
53# Fail to start if not controlling the tty.
54StandardInput=tty-fail
55StandardOutput=journal
11StandardError=journal 56StandardError=journal
12PermissionsStartOnly=true
13IgnoreSIGPIPE=no
14 57
15ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS 58# Log this user with utmp, letting it show up with commands 'w' and 'who'.
59UtmpIdentifier=tty7
60UtmpMode=user
61
62[Install]
63WantedBy=graphical.target
64DefaultInstance=tty7