From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/852 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Dependencies for runit (again) Date: Sat, 27 Aug 2005 19:17:54 +0000 Message-ID: <20050827191757.23596.qmail@2e7744a0987341.315fe32.mid.smarden.org> 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 1125170331 22981 80.91.229.2 (27 Aug 2005 19:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Aug 2005 19:18:51 +0000 (UTC) Original-X-From: supervision-return-1088-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Aug 27 21:18:43 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1E96BK-00061J-JZ for gcsg-supervision@gmane.org; Sat, 27 Aug 2005 21:17:34 +0200 Original-Received: (qmail 11510 invoked by uid 76); 27 Aug 2005 19:17:56 -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 11505 invoked from network); 27 Aug 2005 19:17:56 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:852 Archived-At: On Fri, Aug 12, 2005 at 01:32:53PM -0400, Paul Jarc wrote: > 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. With having the sv program now automatically using the ./check script, this can be replaced with, e.g. sv start `ls -1 ./depends/ 2>/dev/null || :` or if the ./depends/ directory contains symlinks sv start ./depends/* Regards, Gerrit.