Re: Possible to shut down an s6 service via command rather than signal?
"Laurent Bercot" <[email protected]> Wed, 24 Jul 2024 21:09:14 +0000
| Newsgroups | gmane.comp.sysutils.supervision.general |
|---|---|
| Message-ID | <[email protected]> |
>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