Re: How best to ensure s6-managed services are shut down cleanly?

From: Brett Neumeier <bneumeier_at_gmail.com>
Date: Sat, 2 Feb 2019 08:26:04 -0600

On Fri, Feb 1, 2019 at 1:46 PM Laurent Bercot <ska-supervision_at_skarnet.org>
wrote:

> The question is, how does systemd decide to proceed with the rest of
> the shutdown? If it's just waiting for s6-svscan to die, then it's
> easy: don't allow s6-svscan to die before all your services are
> properly shut down. That can be done by a single s6-svwait invocation
> in .s6-svscan/finish:
>
> #!/bin/sh
> exec s6-svwait -D -T60000 /scandir/*
>
> and s6-svscan's death won't be reported to systemd before all your
> services are really down, or one minute, whichever happens sooner.
>

Perfect! I figured there would be something. Thanks as always for your help.

-- 
Brett Neumeier (bneumeier_at_gmail.com)
Received on Sat Feb 02 2019 - 14:26:04 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC