[SOLVED] Re: Reboot or Shutdown commands dont exit from tty auto

From: lumaro <lumaro_at_disroot.org>
Date: Sun, 24 Nov 2024 17:39:30 +0100

El 2024-11-24 15:46, lumaro via supervision escribió:

> El 2024-11-24 13:49, Laurent Bercot escribió:
>
> 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

Thank you Laurent, it works perfectly with that "echo", at least I'm not
crazy xDD

Can I do anything to make my agetty behave compatible or accept this
signal? The solution would be to implement ngetty?

Thanks again, Luis.

Thanks all, solved.

Added down-signal file into tty* service dir .

  $ cat /etc/s6/sv/tty1/down-signal
SIGHUP

Works fine.

Thanks, Luis.
Received on Sun Nov 24 2024 - 17:39:30 CET

This archive was generated by hypermail 2.4.0 : Sun Nov 24 2024 - 17:40:02 CET