supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Laurent Bercot <ska-supervision@skarnet.org>
Subject: Re: exceline & supervision
Date: Wed, 11 Jan 2006 16:39:30 +0100	[thread overview]
Message-ID: <20060111153930.GA5817@skarnet.org> (raw)
In-Reply-To: <2DC959620A73E842969792F5B47FCA0102107701@dg-exch1.giessen.nl>

>    #!/command/excelineb

In a run script, you could use:
#!/command/execlineb -P
Your environment will be cleaner.


>    foreground { ./bin/runcmd }
>    Can anyone see problems with this setup ?

 You won't have any execline-specific problems.
 But instead of having a /bin/sh hanging around, you'll have a
/command/foreground hanging around.

... supervise foo
    \_ foreground
       \_ foo

instead of
... supervise foo
    \_ foo

 This means that you won't be able to use svc to send signals to your
service.

 It's better to forget post-cmd entirely, and have your run script exec
into your service. If you really need a post-cmd, switch from daemontools
to runit, and use runsv's "finish script" feature.

-- 
 Laurent


      reply	other threads:[~2006-01-11 15:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-11 10:10 Frans Haarman
2006-01-11 15:39 ` Laurent Bercot [this message]

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=20060111153930.GA5817@skarnet.org \
    --to=ska-supervision@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).