From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/861 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: Tue, 30 Aug 2005 11:06:46 +0000 Message-ID: <20050830110217.15995.qmail@963fcd0f0e93e1.315fe32.mid.smarden.org> References: <20050530074233.GA17439@skarnet.org> <20050531114539.16382.qmail@6607a8c5b39a0b.315fe32.mid.smarden.org> <20050531190911.25938.qmail@adf4e649eec508.315fe32.mid.smarden.org> <20050601000521.GB32490@grummit.biaix.org> <20050827192438.24239.qmail@573d30f8a31845.315fe32.mid.smarden.org> <20050829080807.24479.qmail@b57f7a37a4464e.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 1125399798 1234 80.91.229.2 (30 Aug 2005 11:03:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 11:03:18 +0000 (UTC) Original-X-From: supervision-return-1097-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Aug 30 13:03:16 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EA3sJ-0005IT-Ht for gcsg-supervision@gmane.org; Tue, 30 Aug 2005 13:01:55 +0200 Original-Received: (qmail 5344 invoked by uid 76); 30 Aug 2005 11:02:16 -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 5339 invoked from network); 30 Aug 2005 11:02:16 -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:861 Archived-At: On Mon, Aug 29, 2005 at 05:08:16AM -0500, Charles Duffy wrote: > Gerrit Pape wrote: > >To query this information, I would prefer to extend the sv program, not > >runsvstat. runsvctrl, runsvstat, svwaitdown, svwaitup, most probably > >will get obsolete some time, as the functionality is integrated into sv. > >I'm not sure about the user interface, whether sv should support special > >commands for this, or command line switches, or so. > > How about a subcommand with switches? Something like: > > $ sv status ... > service1 STATUS (up|down|...) > service1 TIME > service1 LASTEXIT > service2 STATUS (up|down|...) > service2 TIME > service2 LASTEXIT > ... I would prefer not to change the current output of 'sv status'. > $ sv status -s ... > > > > $ sv status -t ... > > > > $ sv status -e ... > > > > and so forth. This I like. Instead of command line switches to the status command, we could also use specific commands, such as $ sv status-pid $ sv status-uptime $ ... > The full "sv status" output is trivially handlable with gawk, whereas > the specific items (selectable w/ a flag) don't require even that, > particularly if there's only one service named. Jup, thanks, Gerrit.