blob: 9d9fdde74fe16f2b6798806811c9a11f54dc7b95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description=Weston display daemon
[Service]
User=display
WorkingDirectory=/run/%u
# FIXME: log files shouldn't be stored in tmpfs directories (can get quite big and have side effects)
ExecStart=/bin/sh -c 'backend=drm ; [ -d /dev/dri ] || backend=fbdev ; exec /usr/bin/weston --backend=$backend-backend.so -i0 --log=/run/%u/weston.log'
StandardInput=tty
TTYPath=/dev/tty7
EnvironmentFile=/etc/sysconfig/weston
Restart=on-failure
RestartSec=10
#adding the capability to configure ttys
#may be needed if the user 'display' doesn't own the tty
#CapabilityBoundingSet=CAP_SYS_TTY_CONFIG
[Install]
WantedBy=graphical.target
|