From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/941 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: Fri, 9 Dec 2005 15:29:36 +0100 Message-ID: <20051209142936.16428.qmail@94b573dfd8565a.315fe32.mid.smarden.org> References: <20050919082620.21268.qmail@162d9f02f26a34.315fe32.mid.smarden.org> <20050926100729.10530.qmail@c13d51208eed48.315fe32.mid.smarden.org> <20051208110807.32074.qmail@a42d0fe2c911e1.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 1134138632 22207 80.91.229.2 (9 Dec 2005 14:30:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2005 14:30:32 +0000 (UTC) Original-X-From: supervision-return-1177-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 09 15:30:28 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EkjFM-0005xW-S8 for gcsg-supervision@gmane.org; Fri, 09 Dec 2005 15:29:18 +0100 Original-Received: (qmail 31036 invoked by uid 76); 9 Dec 2005 14:29:38 -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 31031 invoked from network); 9 Dec 2005 14:29:37 -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:941 Archived-At: On Thu, Dec 08, 2005 at 01:37:51PM -0600, Charles Duffy wrote: > Gerrit Pape wrote: > >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: > > > > Sounds reasonable. Are you willing to impliment this yourself, or do you > want me to? Contribution alwys is nice, and I'm rather busy these days. So I would be happy if you can put work into it. Thanks! will not work though in a file that's only written when some status changes, this should be instead I guess. And you suggested to differentiate the run/finish return codes by 'exited cleanly', and 'killed by signal'. To make numeric tests (`test "$runrc" -lt 0`) work, how about 0-255 for 'exited cleanly', and -SIGNO for 'killed by signal'? What if ./run or ./finish did not exit yet? Thanks, Gerrit.