Re: Dependencies on shutdown?

2019-02-25 Thread Colin Booth
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


Dependencies on shutdown?

2019-02-25 Thread Steve Litt
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?

Thanks,

SteveT