supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: "supervision@list.skarnet.org" <supervision@list.skarnet.org>
Subject: Re[2]: Reboot or Shutdown commands dont exit from tty auto
Date: Sun, 24 Nov 2024 12:49:30 +0000	[thread overview]
Message-ID: <em155d8896-9b4d-4319-8e8e-f04f5cb6902e@b1971efe.com> (raw)
In-Reply-To: <94f3877d06721f3f2251128b70239fea@disroot.org>

>  Would it then be correct to remove agetty from the supervised?

  No, you should be able to run a shutdown command from any terminal,
the design of s6-linux-init is made for that use case.

  What's happening is that your agetty is resistant to the signal it's
being sent, so it's not dying when it should.

  Some implementations of getty explicitly resist SIGTERM. So, try
"echo SIGHUP > down-signal" in the service directory for your agetty.

--
  Laurent


  reply	other threads:[~2024-11-24 12:49 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
2024-11-24 12:49     ` Laurent Bercot [this message]
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=em155d8896-9b4d-4319-8e8e-f04f5cb6902e@b1971efe.com \
    --to=ska-supervision@skarnet.org \
    --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).