From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/877 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit - access to run script's exit status for finish? Date: Fri, 16 Sep 2005 08:15:47 +0000 Message-ID: <20050916081102.3143.qmail@fd77e0f90e0d16.315fe32.mid.smarden.org> References: <20050601000521.GB32490@grummit.biaix.org> <20050827192438.24239.qmail@573d30f8a31845.315fe32.mid.smarden.org> <20050829080807.24479.qmail@b57f7a37a4464e.315fe32.mid.smarden.org> <20050915092844.4037.qmail@6530944879c9e2.315fe32.mid.smarden.org> <20050915144140.2536.qmail@1c84fcc3458bfc.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 1126858308 22289 80.91.229.2 (16 Sep 2005 08:11:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 08:11:48 +0000 (UTC) Original-X-From: supervision-return-1113-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Sep 16 10:11:40 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EGBIw-00033L-9L for gcsg-supervision@gmane.org; Fri, 16 Sep 2005 10:10:42 +0200 Original-Received: (qmail 30638 invoked by uid 76); 16 Sep 2005 08:11:03 -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 30633 invoked from network); 16 Sep 2005 08:11:02 -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:877 Archived-At: On Thu, Sep 15, 2005 at 01:10:04PM -0500, Charles Duffy wrote: > Gerrit Pape wrote: > >On Thu, Sep 15, 2005 at 08:18:06AM -0400, Paul Jarc wrote: > >>Gerrit Pape wrote: > >>># sv status -r . > >>># > >>>./run didn't terminate yet, since the supervisor started. > >>Since the supervisor started, or since the last time ./run was > >>started? The latter seems more useful to me. > > > >Yes, I agree. It should print nothing if ./run (or ./finish with -f) is > >currently running. > > That's not very useful when chaining, though. > > If you run "sv status -r -p -s ." in a shell script, you're probably > going to pipe it into something like "read exitstatus pid state"; > excluding the exit status entirely if the program is currently running, > then, means that you'd end up with your values stored in the wrong > variables -- certainly not a desirable outcome. True. > At minimum, a placeholder like "-" or "N/A" should be printed if one > desires to indicate that no exit has occured. (That said, I'm still fond > of my type:value syntax). Okay, if you prefer that type:value output, it's fine with me also. If for some reason it turns out to be inconvenient, we can still change it afterwards. Regards, Gerrit.