From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/846 Path: news.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Dependencies for runit (again) Date: Fri, 12 Aug 2005 13:32:53 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: <20050809170349.GF20253@mikebell.org> <20050809203450.GA9095@johann.karrmann.de> <20050812172432.6467.qmail@ba17571ef25f7d.315fe32.mid.smarden.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123868391 29628 80.91.229.2 (12 Aug 2005 17:39:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 17:39:51 +0000 (UTC) Original-X-From: supervision-return-1082-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Aug 12 19:39:49 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1E3dU0-0007eI-8u for gcsg-supervision@gmane.org; Fri, 12 Aug 2005 19:38:16 +0200 Original-Received: (qmail 9798 invoked by uid 76); 12 Aug 2005 17:38:37 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 9793 invoked from network); 12 Aug 2005 17:38:37 -0000 Original-To: supervision@list.skarnet.org In-Reply-To: <20050812172432.6467.qmail@ba17571ef25f7d.315fe32.mid.smarden.org> (Gerrit Pape's message of "Fri, 12 Aug 2005 17:25:41 +0000") Mail-Copies-To: nobody Mail-Followup-To: supervision@list.skarnet.org Original-Lines: 16 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:846 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:846 Gerrit Pape wrote: > for i in `ls -1 ./depends/ 2>/dev/null || :`; do > sv start $i || exit 1 > ! test -x /var/service/$i/check || $_ || exit 1 > done It would be nice to have this bit as its own command, so a run script would only have to call something like "check-depends ./depends" without any further duplication of code between run scripts. Also, one benefit of letting the dependency's own runsv handle invocation of the check script is that it gives the check script the same consistent process state as the corresponding run script. paul