supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Charlie Brady <charlieb-supervision@budge.apana.org.au>
To: Rehan Khan <rehan.khan@dsl.pipex.com>
Cc: supervision@list.skarnet.org
Subject: Re: Customised control help
Date: Tue, 1 Jan 2008 11:29:13 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0801011122540.6628@e-smith.charlieb.ott.istop.com> (raw)
In-Reply-To: <loom.20080101T081035-510@post.gmane.org>


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.


  parent reply	other threads:[~2008-01-01 16:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-01  8:27 Rehan Khan
2008-01-01 10:29 ` KORN Andras
2008-01-01 16:29 ` Charlie Brady [this message]
     [not found] ` <14AE52C8045C4D1F9AC27FD137DA0657@home.internal>
2008-01-02  6:44   ` rehan khan
2008-01-02 10:42     ` KORN Andras
2008-01-02 14:41     ` Charlie Brady
     [not found]     ` <0DEDB6FEF7B44A7C8C121C2E41C63F43@home.internal>
2008-01-02 17:03       ` rehan khan
2008-01-02 17:37         ` Charlie Brady
     [not found]         ` <CE0657F3ABAE4CE5B8C8E594928A8067@home.internal>
2008-01-03  4:33           ` rehan khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0801011122540.6628@e-smith.charlieb.ott.istop.com \
    --to=charlieb-supervision@budge.apana.org.au \
    --cc=rehan.khan@dsl.pipex.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).