feat: add openrc support

This commit is contained in:
2024-09-04 19:39:39 +02:00
parent b4fbe68542
commit ae4e4df7cd
4 changed files with 47 additions and 9 deletions

View File

@@ -8,17 +8,21 @@ There's make scripts to automatically copy the service files to the proper locat
The manuall steps for installation are:
## Systemd
* Copy `systemd.service` to `/etc/systemd/system/lidm.service`.
* Copy `systemd.service` to `/etc/systemd/system/lidm.service`
* To enable it you can run `systemctl enable lidm`
## Dinit
* Copy `dinit` to `/etc/dinit.d/lidm`.
* To enable it, run `dinitctl enable lidm`.
* Copy `dinit` to `/etc/dinit.d/lidm`
* To enable it, run `dinitctl enable lidm`
## Runit
* Copy `runit/` to `/etc/runit/sv/lidm/`.
* Add the service with `ln -s /etc/runit/sv/lidm /run/runit/service`.
* Copy `runit/` to `/etc/runit/sv/lidm/`
* Add the service with `ln -s /etc/runit/sv/lidm /run/runit/service`
* And to enable it `sv enable lidm`
## OpenRC
* Copy `openrc` to `/etc/init.d/lidm`
* Enable the service with `rc-update add lidm`
> [!WARNING]
> Make sure to disable any other service that might run on tty7, such us lightdm or most display managers out there.