Re: Possible to shut down an s6 service via command rather than signal?

From: Laurent Bercot <ska-supervision_at_skarnet.org>
Date: Wed, 24 Jul 2024 21:09:14 +0000

>From a similar Github issue [1], the suggested way of implementing "stop
>commands" on top of s6 is running these two commands:
>
>```
>s6-svc -O /path/to/service
>stop-command
>```
>
>I'm not aware of any s6-rc sugar around it.

  Indeed.
  Every long-lived program should have a graceful stop signal, instead
of relying on an external command. That's how Unix has always worked,
and it's a misdesign of qemu not to support that.
  Sorry that the s6 way of handling shutdown commands is kludgy, but
s6 really wasn't designed to accommodate them. :/

--
  Laurent
Received on Wed Jul 24 2024 - 23:09:14 CEST

This archive was generated by hypermail 2.4.0 : Wed Jul 24 2024 - 23:09:43 CEST