From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/937 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: new "sv status" flags and exit-tracking patch, and misc. Date: Thu, 8 Dec 2005 12:08:07 +0100 Message-ID: <20051208110807.32074.qmail@a42d0fe2c911e1.315fe32.mid.smarden.org> References: <20050919082620.21268.qmail@162d9f02f26a34.315fe32.mid.smarden.org> <20050926100729.10530.qmail@c13d51208eed48.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 1134040166 23665 80.91.229.2 (8 Dec 2005 11:09:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2005 11:09:26 +0000 (UTC) Original-X-From: supervision-return-1173-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Dec 08 12:09:23 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EkJcp-00030Z-Td for gcsg-supervision@gmane.org; Thu, 08 Dec 2005 12:07:48 +0100 Original-Received: (qmail 9382 invoked by uid 76); 8 Dec 2005 11:08:08 -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 9377 invoked from network); 8 Dec 2005 11:08:08 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20050926100729.10530.qmail@c13d51208eed48.315fe32.mid.smarden.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:937 Archived-At: On Mon, Sep 26, 2005 at 10:12:20AM +0000, Gerrit Pape wrote: > On Mon, Sep 19, 2005 at 02:13:30PM -0500, Charles Duffy wrote: > > Charles Duffy wrote: > > >Attached is a patch which attempts to stick to the items we agreed on. > > > > Erk -- actually, that one was a little too overreaching as well, since > > it changed "sv status" to provide the last exit status of finish (if > > curently in run) or run (if currently in finish), if that program exited > > with a status other than 0. Since the requested spec was that the output > > of "sv status" (when called without flags) not be altered... well, > > here's another attempt. > > Hi Charles, thanks a lot for the patch. This looks much better to me to > work with. I'll try to find some time soon, to review it, and integrate > it into the next runit test version. Hi, I haven't done this yet, sorry. Somehow I'm reluctant to make these changes to the command line option of the sv program, I'm afraid it gets too complex. I guess ./run and ./finish almost always will be scripts, more precisely shell scripts. runsv as of now maintains two files supervise/stat and supervise/pid. How about removing these files, and add a single one containing the informations discussed here?: ./supervise/info: Shell script then can do set `cat ./supervise/info` "" state=$1 want=$2 pid=$3 uptime=$4 rrc=$5 frc=$6 or so. Regards, Gerrit.