mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-30 18:08:00 +02:00
feat: add s6 suport
This commit is contained in:
@@ -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.
|
||||
|
0
assets/services/s6/dependencies.d/hostname
Normal file
0
assets/services/s6/dependencies.d/hostname
Normal file
0
assets/services/s6/dependencies.d/mount-devfs
Normal file
0
assets/services/s6/dependencies.d/mount-devfs
Normal file
8
assets/services/s6/run
Executable file
8
assets/services/s6/run
Executable 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
1
assets/services/s6/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
Reference in New Issue
Block a user