feat: add s6 suport

This commit is contained in:
2024-09-04 20:36:50 +02:00
parent 2fb0e0e0de
commit 6d3c3cbb57
7 changed files with 20 additions and 1 deletions

View File

@@ -24,5 +24,10 @@ The manuall steps for installation are:
* Copy `openrc` to `/etc/init.d/lidm`
* Enable the service with `rc-update add lidm`
## S6
* Copy `s6/` to `/etc/s6/sv/lidm/`
* Add the service with `s6-service add default lidm`
* Reload the database with `s6-db-reload` (you might have to run this every time the service file changes)
> [!WARNING]
> Make sure to disable any other service that might run on tty7, such us lightdm or most display managers out there.

8
assets/services/s6/run Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/execlineb -P
if { pipeline { s6-rc -ba list } grep -qFx mount-filesystems }
importas -uD "yes" SPAWN SPAWN
importas -sCuD "" ARGS ARGS
importas -sCuD "agetty" GETTY GETTY
if -t { test -e /dev/tty7 }
if -t { test ${SPAWN} = "yes" }
exec agetty -8 tty7 115200 ${ARGS} -nl /bin/lidm -o 7

1
assets/services/s6/type Normal file
View File

@@ -0,0 +1 @@
longrun