supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Colin Booth <colin@heliocat.net>
To: supervision@list.skarnet.org
Subject: Re: Dependencies on shutdown?
Date: Tue, 26 Feb 2019 07:45:25 +0000	[thread overview]
Message-ID: <20190226074525.umqnomfw3paj63wf@cathexis.xen.prgmr.com> (raw)
In-Reply-To: <20190226021751.7f2e103f@mydesk.domain.cxm>

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


      reply	other threads:[~2019-02-26  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-26  7:17 Steve Litt
2019-02-26  7:45 ` Colin Booth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190226074525.umqnomfw3paj63wf@cathexis.xen.prgmr.com \
    --to=colin@heliocat.net \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).