Re: Single user mode problem

From: Leah Neukirchen <leah_at_vuxu.org>
Date: Tue, 25 Jan 2022 20:15:01 +0100

Domenico Panella <pandom79_at_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  <leah_at_vuxu.org>  https://leahneukirchen.org/
Received on Tue Jan 25 2022 - 20:15:01 CET

This archive was generated by hypermail 2.4.0 : Tue Jan 25 2022 - 20:15:33 CET