From: "lumaro via supervision" <supervision@list.skarnet.org>
To: "Hoël Bézier" <hoelbezier@riseup.net>
Cc: supervision@list.skarnet.org
Subject: Re: Reboot or Shutdown commands dont exit from tty auto
Date: Sun, 24 Nov 2024 13:26:17 +0100 [thread overview]
Message-ID: <94f3877d06721f3f2251128b70239fea@disroot.org> (raw)
In-Reply-To: <Z0MGmX9nyACAhZGg@sparta>
[-- Attachment #1: Type: text/plain, Size: 2574 bytes --]
El 2024-11-24 11:57, Hoël Bézier escribió:
> 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
Hi !
Thank you for the prompt response, indeed "agetty" is supervised.
s6-svscan-+-at-spi-bus-laun---3*[{at-spi-bus-laun}]
|-firefox-+-Isolated Servic---30*[{Isolated Servic}]
| |-5*[Isolated Web Co---27*[{Isolated Web Co}]]
| |-Isolated Web Co---35*[{Isolated Web Co}]
| |-Isolated Web Co---31*[{Isolated Web Co}]
| |-3*[Isolated Web Co---26*[{Isolated Web Co}]]
| |-Privileged Cont---27*[{Privileged Cont}]
| |-RDD Process---13*[{RDD Process}]
| |-Socket Process---5*[{Socket Process}]
| |-Utility Process---4*[{Utility Process}]
| |-Web Content---19*[{Web Content}]
| |-2*[Web Content---18*[{Web Content}]]
| |-WebExtensions---26*[{WebExtensions}]
| |-firefox
| `-128*[{firefox}]
|-foot-+-mksh
| |-mksh---pstree
| |-mksh---vim---{vim}
| `-48*[{foot}]
|-3*[footclient]
|-gvfsd---3*[{gvfsd}]
|-2*[s6-supervise---s6-ipcserverd]
|-4*[s6-supervise---s6-log]
|-s6-supervise---s6-linux-init-s
|-s6-supervise---agetty
|-s6-supervise---dbus-run-sessio-+-dbus-daemon
| `-sway---23*[{sway}]
|-7*[s6-supervise]
|-s6-supervise---seatd
|-s6-supervise---ucspilogd
|-s6-supervise---udevd
|-s6-supervise---s6-fdholderd
`-swaybg
Would it then be correct to remove agetty from the supervised?
Thanks, Luis.
next prev parent reply other threads:[~2024-11-24 12:26 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
2024-11-24 12:26 ` lumaro via supervision [this message]
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=94f3877d06721f3f2251128b70239fea@disroot.org \
--to=supervision@list.skarnet.org \
--cc=hoelbezier@riseup.net \
--cc=lumaro@disroot.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).