supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Single user mode problem
@ 2022-01-24 13:36 Domenico Panella
  2022-01-25 19:15 ` Leah Neukirchen
  0 siblings, 1 reply; 2+ messages in thread
From: Domenico Panella @ 2022-01-24 13:36 UTC (permalink / raw)
  To: supervision

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?
Regards



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Single user mode problem
  2022-01-24 13:36 Single user mode problem Domenico Panella
@ 2022-01-25 19:15 ` Leah Neukirchen
  0 siblings, 0 replies; 2+ messages in thread
From: Leah Neukirchen @ 2022-01-25 19:15 UTC (permalink / raw)
  To: Domenico Panella; +Cc: supervision

Domenico Panella <pandom79@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@vuxu.org>  https://leahneukirchen.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-25 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 13:36 Single user mode problem Domenico Panella
2022-01-25 19:15 ` Leah Neukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).