Re: s6-svscan shutdown notification

2022-02-23 Thread Jan-willem De Bleser
Not an option to be its parent since there's no persistent supervisor of a jail's root process, but that script using .s6-svscan/finish should do nicely. Thanks for the suggestion! - Jw On Wed, Feb 23, 2022 at 9:04 PM Laurent Bercot wrote: > > >What's the cleanest way to wait on s6-svscan to

Re: s6-svscan shutdown notification

2022-02-23 Thread Laurent Bercot
What's the cleanest way to wait on s6-svscan to shut down after issuing of a SIGTERM (say s6 via-svscanctl -t)? Be its parent, and wait for it. :) On SIGTERM, s6-svscan will not exit until the supervision tree is entirely down, so that will work. If you're not the parent, then you'll have

s6-svscan shutdown notification

2022-02-23 Thread Jan-willem De Bleser
Hi, What's the cleanest way to wait on s6-svscan to shut down after issuing of a SIGTERM (say s6 via-svscanctl -t)? I'm using s6 to manage daemons in FreeBSD jails, and am trying to work out the cleanest way to shut things down. I want to use the built-in 'jail' command for this since it takes