supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Samuel Holland <samuel@sholland.org>
To: Laurent Bercot <ska-supervision@skarnet.org>,
	supervision@list.skarnet.org
Subject: Re: s6-rc-update does not create pipes when already-running service becomes a consumer
Date: Wed, 27 Sep 2023 11:09:35 -0500	[thread overview]
Message-ID: <0da6cd6d-0e15-d3f5-8eae-0f862bf41164@sholland.org> (raw)
In-Reply-To: <em2a52f21b-618b-4f05-ac76-a238a787ee21@bda392e6.com>

On 9/26/23 14:23, Laurent Bercot wrote:
> 
>  I agree with all you're saying here...
>  ... except that this case makes no sense in the first place. A consumer
> and a non-consumer are fundamentally different things.
> 
>  A running service that is not a consumer does not read anything on its
> stdin. It runs autonomously.
>  A consumer, by essence, is waiting on stdin input, in order to process
> it and do something with it.
> 
>  If a non-consumer were to become a consumer, it would mean its very
> nature would be transformed. It would not behave in the same way at all.

That's not necessarily the case. A service may be a non-consumer but
still waiting on input from a socket or named pipe. Converting a pair of
services to communicate via an anonymous pipe instead of a named pipe is
not a very transformational change.

> And so, it makes no sense for it to be the "same" service. It should not
> be treated the same way; it should not keep the same name.

I would disagree here. There is no reason why the service named "foo"
before s6-rc-update and the service named "foo" after s6-rc-update need
to be related in any way. The naming convention is the user's policy.
After all, s6-rc-update already supports converting a service between a
oneshot and a longrun, which is an even more fundamental change.

>  So, if anything, the change I would make is, when a non-consumer
> becomes a consumer, s6-rc-update just throws an error and exits.
That all said, this sounds reasonable, assuming the error can be avoided
by using a conversion file.


      reply	other threads:[~2023-09-27 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 14:33 Adam Joseph
2023-09-26 19:23 ` Laurent Bercot
2023-09-27 16:09   ` Samuel Holland [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=0da6cd6d-0e15-d3f5-8eae-0f862bf41164@sholland.org \
    --to=samuel@sholland.org \
    --cc=ska-supervision@skarnet.org \
    --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).