supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Leah Neukirchen <leah@vuxu.org>
To: Domenico Panella <pandom79@gmail.com>
Cc: supervision@list.skarnet.org
Subject: Re: Single user mode problem
Date: Tue, 25 Jan 2022 20:15:01 +0100	[thread overview]
Message-ID: <87y233hbka.fsf@vuxu.org> (raw)
In-Reply-To: <37344717.Ad1ZaxnVCB@susedomenico> (Domenico Panella's message of "Mon, 24 Jan 2022 14:36:40 +0100")

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/

      reply	other threads:[~2022-01-25 19:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 13:36 Domenico Panella
2022-01-25 19:15 ` Leah Neukirchen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y233hbka.fsf@vuxu.org \
    --to=leah@vuxu.org \
    --cc=pandom79@gmail.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).