From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2513 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Colin Booth Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Dependencies on shutdown? Date: Tue, 26 Feb 2019 07:45:25 +0000 Message-ID: <20190226074525.umqnomfw3paj63wf@cathexis.xen.prgmr.com> References: <20190226021751.7f2e103f@mydesk.domain.cxm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142483"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20170113 (1.7.2) To: supervision@list.skarnet.org Original-X-From: supervision-return-2103-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Feb 26 08:45:28 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gyXQe-000axj-0f for gcsg-supervision@m.gmane.org; Tue, 26 Feb 2019 08:45:28 +0100 Original-Received: (qmail 18511 invoked by uid 89); 26 Feb 2019 07:45:53 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18504 invoked from network); 26 Feb 2019 07:45:53 -0000 Content-Disposition: inline In-Reply-To: <20190226021751.7f2e103f@mydesk.domain.cxm> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2513 Archived-At: 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