supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Stefan Karrmann <sk@mathematik.uni-ulm.de>
Cc: dns@list.cr.yp.to
Subject: Re: Linux startup issue
Date: Sat, 14 Aug 2004 19:20:52 +0200	[thread overview]
Message-ID: <20040814172052.GA6405@johann.karrmann.de> (raw)
In-Reply-To: <m3y8kigq8n.fsf@multivac.cwru.edu>

Paul Jarc (Sat, Aug 14, 2004 at 02:58:26AM -0400):
> Jonathan de Boyne Pollard <J.deBoynePollard@Tesco.NET> wrote:
> > 2.  "Restart" is better implemented as "svc -t" rather than as "svc
> > -du", since the latter has the side-effect of changing the current
> > state (to "up") whereas the former does not.
> 
> More specifically:
> - If the service is down to begin with, "svc -t" will have no effect;
>   "svc -du" will bring the service up, with automatic restarting.
> - If the service is running once from "svc -o", then "svc -t" will
>   take it down and leave it down; "svc -du" will take it down and
>   bring it back up, with automatic restarting; "svc -do" will take it
>   down and bring it back up, without automatic restarting, just as it
>   was originally.  (supervise publishes enough information in
>   supervise/status to distinguish the "-o" state from the "-u" state,
>   but svstat doesn't report it.)
> - "svc -d" sends SIGTERM and SIGCONT, so if the service is stopped
>   with SIGSTOP, it will be allowed to run again so it can exit.
>   "svc -t" sends only SIGTERM, which is not sufficient to kill a
>   stopped process, but it can be combined with "svc -c" for the same
>   effect as "svc -d" (without turning off restarting).

My 2 cent:

- Use svc -tcu if the service is up.
- Use svc -tco if the service is running once.

-- 
Stefan


      reply	other threads:[~2004-08-14 17:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.61.0408121801310.23255@avion.km3t.org>
2004-08-13  9:41 ` Jonathan de Boyne Pollard
2004-08-14  6:58   ` Paul Jarc
2004-08-14 17:20     ` Stefan Karrmann [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=20040814172052.GA6405@johann.karrmann.de \
    --to=sk@mathematik.uni-ulm.de \
    --cc=dns@list.cr.yp.to \
    /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).