supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Cc: supervision@list.skarnet.org
Subject: Re: OT: /package and /service
Date: Tue, 19 Apr 2005 14:54:46 -0400	[thread overview]
Message-ID: <m3br8aiokz.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <20050419183907.GA28253@tranquility.scriptkitchen.com> (Payal Rathod's message of "Tue, 19 Apr 2005 14:39:07 -0400")

Payal Rathod <payal-supervision@scriptkitchen.com> wrote:
> 1. Why is /package made with sticky bit set?

To simplify code that looks for package directories.  Category
directories (which may contain packages or subcategories) are sticky,
and package directories are not sticky.  /package contains categories,
so its consistent to make it sticky.  Otherwise, code would have to
treat /package itself specially instead of just checkign for the
sticky bit to decide whether to descend into subdirectories.

> 2. In /service/<process>/supervise/ there are 4 files,
> 2 fifos - control and ok
> 2 normal files - lock and status
> Why are fifos used here? Which document explains this?

It's not documented.  supervise/ok is used by svok and svc to detect
whether supervise is running.  A regular file wouldn't work for this,
because the file could be in the same state even if supervise died.

supervise/control is used by svc to send commands to supervise.  There
are ways to use regular files instead, but the pipe is simpler.

> But what about svscan itself? What if it dies? Who restarts it?

I run svscan as process 1, so I don't have to worry about it.

With svscanboot, I believe the intent is that init (on SysV systems,
anyway) would restart svscan if it dies.  But it won't actually be
restarted until readproctitle exits too, and that won't normally
happen until all supervises exit.

> Also is there any documentation which says why are there so many dots in 
> that script and what do they signify?

<URL:http://cr.yp.to/daemontools/readproctitle.html>
Those dots are replaced by the data read by readproctitle.  The number
of dots determines how much of that log you'll be able to see at one
time.


paul


  reply	other threads:[~2005-04-19 18:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 18:39 Payal Rathod
2005-04-19 18:54 ` Paul Jarc [this message]
2005-04-19 19:03   ` Payal Rathod
2005-04-19 19:13     ` Paul Jarc

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=m3br8aiokz.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    --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).