From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/863 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: Tue, 30 Aug 2005 11:55:23 -0500 Message-ID: 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> <20050830110217.15995.qmail@963fcd0f0e93e1.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 1125421460 12097 80.91.229.2 (30 Aug 2005 17:04:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 17:04:20 +0000 (UTC) Original-X-From: supervision-return-1099-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Aug 30 19:04:16 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EA9V5-0007nu-G9 for gcsg-supervision@gmane.org; Tue, 30 Aug 2005 19:02:19 +0200 Original-Received: (qmail 9090 invoked by uid 76); 30 Aug 2005 17:02:40 -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 9084 invoked from network); 30 Aug 2005 17:02:40 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 36 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: <20050830110217.15995.qmail@963fcd0f0e93e1.315fe32.mid.smarden.org> Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:863 Archived-At: Gerrit Pape wrote: > On Mon, Aug 29, 2005 at 05:08:16AM -0500, Charles Duffy wrote: >>$ 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 > > $ > ... Yes, that'd work too. My instinct would be to use flags if we have a particularly large number of items that could be queried, or subcommands if it's going to remain a fairly small set. Right now we've got: - PID - uptime - current state - desired state - last exit status ...anything I'm missing? Five is a small enough number to be reasonable -- I'm just a bit leery after GNU Arch (where one of the constant complaints from new users was the sheer number of subcommands). It's your baby, though, and if I'm going to be writing a patch, my intent is for it to meet your standards.