Re: Self-made runit init script
Reply #21 –
I tried to reproduce and get it working with:
/etc/runit/sv/ly/run
#!/bin/sh
tty=${PWD##*-}
[ -r conf ] && . ./conf
if [ -x /sbin/getty -o -x /bin/getty ]; then
# busybox
GETTY=getty
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
# util-linux
GETTY=agetty
fi
exec setsid ${GETTY} ${GETTY_ARGS} -nl /usr/bin/ly tty7 "38400" "linux"
Edited /etc/ly/config.ini:
# tty in use
tty = 7
Then just enabled service
ln -s /etc/runit/sv/ly /run/runit/service
and reboot