Add s6 support

Co-authored-by: userbook <userbook@devuan>
Co-authored-by: TerminalJunki <158248817+TerminalJunki@users.noreply.github.com>
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-07-27 15:00:07 +02:00
parent ce90f91bbf
commit 0cead672da
4 changed files with 55 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ then you have to disable getty, so it doesn't respawn on top of ly
# ln -s /etc/sv/ly /var/service/
```
By default, ly will run on tty2. To change the tty it must be set in `/etc/ly/config.ini`
By default, ly will run on tty2. To change the tty it must be set in `/etc/ly/config.ini`
You should as well disable your existing display manager service if needed, e.g.:
@@ -148,6 +148,21 @@ you should disable the agetty-tty2 service like this:
# rm /var/service/agetty-tty2
```
### s6
```
# zig build installs6
```
Then, edit `/etc/s6/config/ttyX.conf` and set `SPAWN="no"`, where X is the TTY ID (e.g. `2`).
Finally, enable the service:
```
# s6-service add default ly-srv
# s6-db-reload
# s6-rc -u change ly-srv
```
### Updating
You can also install Ly without copying the system service and the configuration file. That's
called *updating*. To update, simply run: