mirror of
https://github.com/fairyglade/ly.git
synced 2026-02-04 08:24:55 +00:00
[Backport] Escape TTY in systemd service
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
12
readme.md
12
readme.md
@@ -121,9 +121,15 @@ that Ly will run on, otherwise bad things will happen. For example, to disable `
|
|||||||
# systemctl disable getty@tty2.service
|
# systemctl disable getty@tty2.service
|
||||||
```
|
```
|
||||||
|
|
||||||
You can change the TTY Ly will run on by editing the corresponding
|
On platforms that use systemd-logind to dynamically start `autovt@.service` instances when the switch to a new tty occurs, any ly instances for ttys *except the default tty* need to be enabled using a different mechanism: To autostart ly on switch to `tty2`, do not enable any `ly` unit directly, instead symlink `autovt@tty2.service` to `ly@tty2.service` within `/usr/lib/systemd/system/` (analogous for every other tty you want to enable ly on).
|
||||||
service file for your platform, or on systemd, by enabling the service on
|
|
||||||
different TTYs, as is done above.
|
The target of the symlink, `ly@ttyN.service`, does not actually exist, but systemd nevertheless recognizes that the instanciation of `autovt@.service` with `%I` equal to `ttyN` now points to an instanciation of `ly@.service` with `%I` set to `ttyN`.
|
||||||
|
|
||||||
|
Compare to `man 5 logind.conf`, especially regarding the `NAutoVTs=` and `ReserveVT=` parameters.
|
||||||
|
|
||||||
|
|
||||||
|
On non-systemd systems, you can change the TTY Ly will run on by editing the corresponding
|
||||||
|
service file for your platform.
|
||||||
|
|
||||||
### OpenRC
|
### OpenRC
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=TUI display manager
|
Description=TUI display manager
|
||||||
After=systemd-user-sessions.service plymouth-quit-wait.service
|
After=systemd-user-sessions.service plymouth-quit-wait.service
|
||||||
After=getty@%I.service
|
After=getty@%i.service
|
||||||
Conflicts=getty@%I.service
|
Conflicts=getty@%i.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=idle
|
Type=idle
|
||||||
|
|||||||
Reference in New Issue
Block a user