Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=Weston Wayland Compositor (on tty7) |
| 3 | RequiresMountsFor=/run |
| 4 | Conflicts=getty@tty7.service plymouth-quit.service |
| 5 | After=systemd-user-sessions.service getty@tty7.service plymouth-quit-wait.service |
| 6 | |
| 7 | [Service] |
| 8 | User=%i |
| 9 | PermissionsStartOnly=true |
| 10 | |
| 11 | # Log us in via PAM so we get our XDG & co. environment and |
| 12 | # are treated as logged in so we can use the tty: |
| 13 | PAMName=login |
| 14 | |
| 15 | # Grab tty7 |
| 16 | UtmpIdentifier=tty7 |
| 17 | TTYPath=/dev/tty7 |
| 18 | TTYReset=yes |
| 19 | TTYVHangup=yes |
| 20 | TTYVTDisallocate=yes |
| 21 | |
| 22 | # stderr to journal so our logging doesn't get thrown into /dev/null |
| 23 | StandardOutput=tty |
| 24 | StandardInput=tty |
| 25 | StandardError=journal |
| 26 | |
| 27 | EnvironmentFile=-/etc/default/weston |
| 28 | |
| 29 | # Weston does not successfully change VT, nor does systemd place us on |
| 30 | # the VT it just activated for us. Switch manually: |
| 31 | ExecStartPre=/usr/bin/chvt 7 |
| 32 | ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log $OPTARGS |
| 33 | |
| 34 | IgnoreSIGPIPE=no |
| 35 | |
| 36 | #[Install] |
| 37 | #Alias=multi-user.target.wants/weston.service |