Re: Dependencies on shutdown?

From: Colin Booth <>
Date: Tue, 26 Feb 2019 07:45:25 +0000

On Tue, Feb 26, 2019 at 02:17:51AM -0500, Steve Litt wrote:
> Hi all,
> Let's say I have dependencies so that shutdown must be done in the
> right order. For instance, I want to have my web app close before my
> database, so that all final writes get done. How do I do that in runit
> or s6?
Use s6-rc. The dependency definition that made sure the database is up
before the web app is started will also make sure that the web app is
stopped before triggering the stop on the database daemon.

Colin Booth
Received on Tue Feb 26 2019 - 07:45:25 UTC

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