From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/857 Path: news.gmane.org!not-for-mail From: Charles Duffy Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit - access to run script's exit status for finish? Date: Mon, 29 Aug 2005 05:08:16 -0500 Message-ID: References: <20050529055250.21848.qmail@eea771e6cc397c.315fe32.mid.smarden.org> <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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125310558 4206 80.91.229.2 (29 Aug 2005 10:15:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 10:15:58 +0000 (UTC) Original-X-From: supervision-return-1093-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Aug 29 12:15:50 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1E9gd6-0005Vq-Gh for gcsg-supervision@gmane.org; Mon, 29 Aug 2005 12:12:40 +0200 Original-Received: (qmail 26446 invoked by uid 76); 29 Aug 2005 10:13:01 -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 26440 invoked from network); 29 Aug 2005 10:13:01 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user-0ccss7l.cable.mindspring.com User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: <20050829080807.24479.qmail@b57f7a37a4464e.315fe32.mid.smarden.org> Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:857 Archived-At: 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 ... $ sv status -s ... $ sv status -t ... $ sv status -e ... and so forth. 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.