From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1588 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Customised control help Date: Tue, 1 Jan 2008 11:29:13 -0500 (EST) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1199204961 25991 80.91.229.12 (1 Jan 2008 16:29:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jan 2008 16:29:21 +0000 (UTC) Cc: supervision@list.skarnet.org To: Rehan Khan Original-X-From: supervision-return-1823-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jan 01 17:29:40 2008 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1J9jzn-0000G9-Pb for gcsg-supervision@gmane.org; Tue, 01 Jan 2008 17:29:39 +0100 Original-Received: (qmail 22222 invoked by uid 76); 1 Jan 2008 16:29:23 -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 22216 invoked from network); 1 Jan 2008 16:29:22 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1588 Archived-At: On Tue, 1 Jan 2008, Rehan Khan wrote: > From the man page for runsv: > > Customize Control > For each control character c sent to the control pipe, runsv first checks if ... > I have a couple of questions: > > 1) are all the control codes supported? Not just the ones in the above > paragraph? (h, 1, 2, etc) Yes, that's what the "for each" means :-) > 2) I have the t script for some of my services. Do I have to send a term > manually after I have run the pre-term commands I need (i.e do I have to do > everything a term signal should do?)? If your custom control script exits non-zero, then runsv will send the term signal. If your custom script exits zero, runsv will do nothing. You therefore have two choices for sending the term signal - do it yourself in the custom script, or allow runsv to do it by exiting non-zero. > Right now the services don't stop properly and the status command > reports 'run, want down' and the service stays up without exiting. So you have to fix the service, or do something other than send a term signal to terminate the service. > 4) Is there a more detailed description of customised control somewhere? I think the man page of runsv is complete and accurate. What do you think is missing? The source code might help you if you wish to learn more or to confirm what you read in the man page.