supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Hoël Bézier" <hoelbezier@riseup.net>
To: supervision@list.skarnet.org
Subject: Re: Reboot or Shutdown commands dont exit from tty auto
Date: Sun, 24 Nov 2024 11:57:29 +0100	[thread overview]
Message-ID: <Z0MGmX9nyACAhZGg@sparta> (raw)
In-Reply-To: <cdfce4d505db35ea0c31e35d5fdd2e49@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

Am So, Nov 24, 2024 am 09:47:56 +0100 schrieb lumaro via supervision:
>Hi all,
>
>When I try to restart or shutdown from the tty, user or root, the
>process displays a message and waits until "exit" is executed and then
>continues with the restart or shutdown...
>
>Example:
>----------
>$ doas reboot
>
>*** WARNING ***
>The system id going down NOW!
>$
>----------
>>> Then run "exit" and *shutdownd*" continues the process ...
>
>My scripts:

I have the same scripts as you and did not experience this issue, so I guess it 
comes from elsewhere.

My best guess would be your tty is part of your supervised processes, and is 
not torn down by your service manager until after you’ve closed it. And since 
shutdownd usually waits for s6-rc to stop the whole service tree before going 
on, that might explain it.

Hoël

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-11-24 10:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-24  8:47 lumaro via supervision
2024-11-24 10:57 ` Hoël Bézier [this message]
2024-11-24 12:26   ` lumaro via supervision
2024-11-24 12:49     ` Re[2]: " Laurent Bercot
2024-11-24 14:46       ` lumaro via supervision
2024-11-24 16:39         ` [SOLVED] " lumaro via supervision
2024-11-24 22:47           ` Laurent Bercot
2024-11-25  5:00             ` lumaro via supervision

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=Z0MGmX9nyACAhZGg@sparta \
    --to=hoelbezier@riseup.net \
    --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).