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