supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Dependencies on shutdown?
@ 2019-02-26  7:17 Steve Litt
  2019-02-26  7:45 ` Colin Booth
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Litt @ 2019-02-26  7:17 UTC (permalink / raw)
  To: supervision

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Dependencies on shutdown?
  2019-02-26  7:17 Dependencies on shutdown? Steve Litt
@ 2019-02-26  7:45 ` Colin Booth
  0 siblings, 0 replies; 2+ messages in thread
From: Colin Booth @ 2019-02-26  7:45 UTC (permalink / raw)
  To: supervision

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-26  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26  7:17 Dependencies on shutdown? Steve Litt
2019-02-26  7:45 ` Colin Booth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).