Domenico Panella <pando...@gmail.com> writes: > Hi all, > > I'm using runit init system on slackware using the void linux init scripts. > All works like a charm except sigle user mode which just run sulogin. > The service goes in loop not showing the prompt for some reason. > This is the service: > > /etc/sv/sulogin/run > > #!/bin/sh > [ -r conf ] && . ./conf > read -r tty < /sys/class/tty/console/active > tty=/dev/${tty##* } > exec /usr/bin/setsid /sbin/sulogin ${OPTS:=-p} < $tty >$tty 2>&1 > > What am i wronging?
This is a bug in Void, setsid backgrounds when it it process group leader already. Either remove the /usr/bin/setsid or replace it with "chpst -P". -- Leah Neukirchen <l...@vuxu.org> https://leahneukirchen.org/