I write the ly-openrc obtained after `make` for soundness:
$ cat ly-openrc
#!/sbin/openrc-run
name="ly"
description="TUI Display Manager"
## Supervisor daemon
supervisor=supervise-daemon
respawn_period=60
pidfile=/run/"${RC_SVCNAME}.pid"
## Check for getty or agetty
if [ -x /sbin/getty ] || [ -x /bin/getty ];
then
# busybox
commandB="/sbin/getty"
elif [ -x /sbin/agetty ] || [ -x /bin/agetty ];
then
# util-linux
commandUL="/sbin/agetty"
fi
## Get the tty from the conf file
CONFTTY=$(cat /etc/ly/config.ini | sed -n 's/^tty.*=[^1-9]*// p')
## The execution vars
# If CONFTTY is empty then default to 2
TTY="tty${CONFTTY:-2}"
TERM=linux
BAUD=38400
# If we don't have getty then we should have agetty
command=${commandB:-$commandUL}
command_args_foreground="-nl /usr/bin/ly $TTY $BAUD $TERM"
depend() {
after agetty
provide display-manager
want elogind
}
On the lack of ly-openrc package, I simply copy that in /etc/init.d/ly and chmod it 755.
Regards,
Xavier
On Wed, 24 May 2023 18:37:41 +0000
"Xavier B." <somenxavier at posteo.net> ha escrit:
> Please provide the package ly-openrc.
>
> The ly repo [https://github.com/fairyglade/ly] includes the ly service <https://github.com/fairyglade/ly] so, it's easy to copy that in ly-openrc package.
>
> Thanks in advance,
> Xavier
> --
> artix-general mailing list
> artix-general at artixlinux.org
> https://lists.artixlinux.org/listinfo/artix-general
More information about the artix-general
mailing list